Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-30180

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

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

      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 Hugh Han
            Reporter:
            hugh.han Hugh Han
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: