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

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.1
    • Affects Version/s: 4.3 Required
    • Component/s: Storage
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Execution Team 2019-08-12
    • 60

      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.

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

              Created:
              Updated:
              Resolved: