diff options
author | Divjot Arora <divjot.arora@10gen.com> | 2019-03-05 16:18:32 -0500 |
---|---|---|
committer | Divjot Arora <divjot.arora@10gen.com> | 2019-03-20 19:15:21 -0400 |
commit | f8f198e55172ba49d9ffb94be50d4e900caa1108 (patch) | |
tree | c1fe58b27303401c71af5bc323ecdc4cfac7d4b8 /src/mongo/db/query | |
parent | 01d8fbb1f0373f0fcca7b2d602f1e593cdc5a379 (diff) | |
download | mongo-f8f198e55172ba49d9ffb94be50d4e900caa1108.tar.gz |
SERVER-39507 Transfer Collection ownership to UUIDCatalog
Diffstat (limited to 'src/mongo/db/query')
-rw-r--r-- | src/mongo/db/query/query_request_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/query/query_request_test.cpp b/src/mongo/db/query/query_request_test.cpp index 3d0b5dd53ea..2afd9e259a9 100644 --- a/src/mongo/db/query/query_request_test.cpp +++ b/src/mongo/db/query/query_request_test.cpp @@ -1421,9 +1421,9 @@ TEST_F(QueryRequestTest, ParseFromUUID) { // Register a UUID/Collection pair in the UUIDCatalog. const CollectionUUID uuid = UUID::gen(); const NamespaceString nss("test.testns"); - CollectionMock coll(nss); + auto coll = std::make_unique<CollectionMock>(nss); UUIDCatalog& catalog = UUIDCatalog::get(opCtx.get()); - catalog.onCreateCollection(opCtx.get(), &coll, uuid); + catalog.onCreateCollection(opCtx.get(), std::move(coll), uuid); QueryRequest qr(NamespaceStringOrUUID("test", uuid)); // Ensure a call to refreshNSS succeeds. qr.refreshNSS(opCtx.get()); |