summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/querytests.cpp
diff options
context:
space:
mode:
authorHenrik Edin <henrik.edin@mongodb.com>2020-10-02 12:57:29 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-10-15 18:16:56 +0000
commit81dabe92f33b3e109561aaa82d681316bb577813 (patch)
tree26aae2e62d0bae70e3c63b788bfa4b328e91916f /src/mongo/dbtests/querytests.cpp
parent44a7c6320cf01c40d6a48ccfab6ea240ccb4b60c (diff)
downloadmongo-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.cpp2
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) {