diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2020-10-02 12:57:29 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-10-15 18:16:56 +0000 |
commit | 81dabe92f33b3e109561aaa82d681316bb577813 (patch) | |
tree | 26aae2e62d0bae70e3c63b788bfa4b328e91916f /src/mongo/dbtests/querytests.cpp | |
parent | 44a7c6320cf01c40d6a48ccfab6ea240ccb4b60c (diff) | |
download | mongo-81dabe92f33b3e109561aaa82d681316bb577813.tar.gz |
SERVER-51201 CollectionPtr returned from AutoGetCollectionLockFree is yieldable
Diffstat (limited to 'src/mongo/dbtests/querytests.cpp')
-rw-r--r-- | src/mongo/dbtests/querytests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/dbtests/querytests.cpp b/src/mongo/dbtests/querytests.cpp index 2bd9ba0a18c..377aee1f160 100644 --- a/src/mongo/dbtests/querytests.cpp +++ b/src/mongo/dbtests/querytests.cpp @@ -129,7 +129,7 @@ protected: wunit.commit(); } abortOnExit.dismiss(); - _collection = collection.get().detached(); + _collection = CollectionPtr(collection.get().get(), CollectionPtr::NoYieldTag{}); } void insert(const char* s) { |