diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2020-11-03 12:42:38 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-11-13 20:15:34 +0000 |
commit | 8f9823f644d0b6beba8a301866141a578d278534 (patch) | |
tree | 1ef4bc439da93a2b39cff7c96a975668c27e7070 /src/mongo/dbtests/storage_timestamp_tests.cpp | |
parent | b670258ac185ecea0492c742f2f50da9d8ab618f (diff) | |
download | mongo-8f9823f644d0b6beba8a301866141a578d278534.tar.gz |
SERVER-52556 Versioned CollectionCatalog. Writes are performed using copy-on-write.
Internal mutexes when reading CollectionCatalog are removed, just one mutex for writes are needed.
Lock-free reads helper AutoGetCollectionForReadLockFree stashes a CollectionCatalog consistent with snapshot on OperationContext
Diffstat (limited to 'src/mongo/dbtests/storage_timestamp_tests.cpp')
-rw-r--r-- | src/mongo/dbtests/storage_timestamp_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/dbtests/storage_timestamp_tests.cpp b/src/mongo/dbtests/storage_timestamp_tests.cpp index 83c078f340f..8df1072c25e 100644 --- a/src/mongo/dbtests/storage_timestamp_tests.cpp +++ b/src/mongo/dbtests/storage_timestamp_tests.cpp @@ -2559,7 +2559,7 @@ public: // Assert the 'a_1' and `b_1` indexes becomes ready at the last oplog entry time. RecordId renamedCatalogId = CollectionCatalog::get(_opCtx) - .lookupCollectionByNamespace(_opCtx, renamedNss) + ->lookupCollectionByNamespace(_opCtx, renamedNss) ->getCatalogId(); ASSERT_TRUE(getIndexMetaData( getMetaDataAtTime(durableCatalog, renamedCatalogId, indexCommitTs), "a_1") |