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

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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.5.10
    • Fix Version/s: 3.5.11
    • Component/s: Sharding
    • Labels:

      Description

      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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: