summaryrefslogtreecommitdiff
path: root/src/mongo/db/op_observer_impl_test.cpp
diff options
context:
space:
mode:
authorGregory Noma <gregory.noma@gmail.com>2020-03-24 11:29:28 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-03-24 15:58:51 +0000
commit80ebcc52a6ec27834a286ab1ab342db0d7f63756 (patch)
treee30f02e0dfd02a9f69769c841f447d6eeab681c0 /src/mongo/db/op_observer_impl_test.cpp
parentb6e4ebfeff3fb4e4158fba14eec841f510199d92 (diff)
downloadmongo-80ebcc52a6ec27834a286ab1ab342db0d7f63756.tar.gz
SERVER-46865 Make collMod not take database MODE_X lock
Diffstat (limited to 'src/mongo/db/op_observer_impl_test.cpp')
-rw-r--r--src/mongo/db/op_observer_impl_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/op_observer_impl_test.cpp b/src/mongo/db/op_observer_impl_test.cpp
index b66303045a6..4408c7494c4 100644
--- a/src/mongo/db/op_observer_impl_test.cpp
+++ b/src/mongo/db/op_observer_impl_test.cpp
@@ -282,7 +282,7 @@ TEST_F(OpObserverTest, CollModWithCollectionOptionsAndTTLInfo) {
// Write to the oplog.
{
- AutoGetDb autoDb(opCtx.get(), nss.db(), MODE_X);
+ AutoGetCollection autoColl(opCtx.get(), nss, MODE_X);
WriteUnitOfWork wunit(opCtx.get());
opObserver.onCollMod(opCtx.get(), nss, uuid, collModCmd, oldCollOpts, ttlInfo);
wunit.commit();
@@ -331,7 +331,7 @@ TEST_F(OpObserverTest, CollModWithOnlyCollectionOptions) {
// Write to the oplog.
{
- AutoGetDb autoDb(opCtx.get(), nss.db(), MODE_X);
+ AutoGetCollection autoColl(opCtx.get(), nss, MODE_X);
WriteUnitOfWork wunit(opCtx.get());
opObserver.onCollMod(opCtx.get(), nss, uuid, collModCmd, oldCollOpts, boost::none);
wunit.commit();