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

Flushing Simple8bBuilder leaves state

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.2.0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2021-11-01

    Description

      Flushing Simple8bBuilder should write out all pending values and reset the state as unrelated data may be written to the BSON Column binary before we start appending new values to the Simple8bBuilder.

      Currently _lastValueInPrevWord is kept so RLE may restart when appending from the wrong base value:

      https://github.com/mongodb/mongo/blob/19cf54eb17cf933dfabf5a553660d93319e51713/src/mongo/bson/util/simple8b.cpp#L434

      https://github.com/mongodb/mongo/blob/19cf54eb17cf933dfabf5a553660d93319e51713/src/mongo/bson/util/simple8b.cpp#L396

      Attachments

        Activity

          People

            henrik.edin@mongodb.com Henrik Edin
            henrik.edin@mongodb.com Henrik Edin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: