diff options
Diffstat (limited to 'src/mongo/dbtests/querytests.cpp')
-rw-r--r-- | src/mongo/dbtests/querytests.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/dbtests/querytests.cpp b/src/mongo/dbtests/querytests.cpp index 4ba7d36c94c..2bd9ba0a18c 100644 --- a/src/mongo/dbtests/querytests.cpp +++ b/src/mongo/dbtests/querytests.cpp @@ -74,7 +74,7 @@ public: } collection = _database->createCollection(&_opCtx, nss()); wunit.commit(); - _collection = collection; + _collection = std::move(collection); } addIndex(IndexSpec().addKey("a").unique(false)); @@ -129,7 +129,7 @@ protected: wunit.commit(); } abortOnExit.dismiss(); - _collection = collection.get(); + _collection = collection.get().detached(); } void insert(const char* s) { @@ -161,7 +161,7 @@ protected: OldClientContext _context; Database* _database; - const Collection* _collection; + CollectionPtr _collection; }; class FindOneOr : public Base { |