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.
- is duplicated by
-
SERVER-42596 Fix race condition in collection_compact.cpp
- Closed