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

compactCollection() should refetch the RecordStore after re-locking the collection

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.1
    • 4.3 Required
    • Storage
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2019-08-12
    • 60

    Description

      If the storage engine supports compacting in place, we re-lock the collection we're going to compact using a weaker lock. In this case, we should re-fetch the RecordStore and IndexCatalog after acquiring the new long to avoid accessing invalid memory.

      Attachments

        Activity

          People

            gregory.wlodarek@mongodb.com Gregory Wlodarek
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: