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

ChunkSplitStateDriver::prepareSplit should atomically swap bytesWritten value

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.1.1
    • None
    • Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding 2018-07-02

    Description

      As is, we stash the value for bytes written and then call clearBytesWritten, but if the value changes between those two calls due to a write in another thread, we'll lose some bytes. We should modify it to do this operation atomically.

      Attachments

        Activity

          People

            matthew.saltz@mongodb.com Matthew Saltz (Inactive)
            matthew.saltz@mongodb.com Matthew Saltz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: