diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2021-10-17 17:49:33 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-10-19 10:14:46 +0000 |
commit | 9679e8ab24b6d990ad9379ca15ed95d26c6f1e5f (patch) | |
tree | 966e6386ea43c5da4446437a6d37634c9b78a554 /src/mongo/db/storage | |
parent | 3ea8c504b8e7ecfab552858d610a239e00004b1e (diff) | |
download | mongo-9679e8ab24b6d990ad9379ca15ed95d26c6f1e5f.tar.gz |
SERVER-31540 Get rid of boost::optional<UUID> from the OpObservers (Part 2)
Diffstat (limited to 'src/mongo/db/storage')
-rw-r--r-- | src/mongo/db/storage/kv/durable_catalog_test.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mongo/db/storage/kv/durable_catalog_test.cpp b/src/mongo/db/storage/kv/durable_catalog_test.cpp index dc96a0451fb..431ec416cc5 100644 --- a/src/mongo/db/storage/kv/durable_catalog_test.cpp +++ b/src/mongo/db/storage/kv/durable_catalog_test.cpp @@ -124,7 +124,7 @@ public: Lock::DBLock dbLk(operationContext(), _nss.db(), MODE_IX); Lock::CollectionLock collLk(operationContext(), _nss, MODE_X); - std::string indexName = "idx" + std::to_string(numIndexesCreated); + std::string indexName = "idx" + std::to_string(_numIndexesCreated); // Make sure we have a valid IndexSpec for the type requested IndexSpec spec; spec.version(1).name(indexName).addKeys(keyPattern); @@ -152,7 +152,7 @@ public: wuow.commit(); } - ++numIndexesCreated; + ++_numIndexesCreated; return entry; } @@ -202,8 +202,9 @@ private: } NamespaceString _nss; - size_t numIndexesCreated = 0; - // RecordId _catalogId; + + size_t _numIndexesCreated = 0; + OptionalCollectionUUID _collectionUUID; }; |