Move should-split logic from cluster_write.cpp to chunk.cpp

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.5.11
    • Affects Version/s: 3.5.10
    • Component/s: Sharding
    • Fully Compatible
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Inside the updateChunkWriteStatsAndSplitIfNeeded function, there exists logic to check whether a particular chunk should be split, using the calculateDesiredChunkSize function to return the splitThreshold.

      The calculation of splitThreshold should be moved into the addBytesWritten function inside of chunk.cpp.

            Assignee:
            Hugh Han (Inactive)
            Reporter:
            Hugh Han (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: