ChunkSplitStateDriver::prepareSplit should atomically swap bytesWritten value

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.1.1
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding 2018-07-02
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Matthew Saltz (Inactive)
            Reporter:
            Matthew Saltz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: