diff options
Diffstat (limited to 'src/mongo/db/s/resharding/resharding_oplog_fetcher.cpp')
-rw-r--r-- | src/mongo/db/s/resharding/resharding_oplog_fetcher.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/resharding/resharding_oplog_fetcher.cpp b/src/mongo/db/s/resharding/resharding_oplog_fetcher.cpp index 23050570432..2a06e180b18 100644 --- a/src/mongo/db/s/resharding/resharding_oplog_fetcher.cpp +++ b/src/mongo/db/s/resharding/resharding_oplog_fetcher.cpp @@ -251,7 +251,7 @@ void ReshardingOplogFetcher::_ensureCollection(Client* client, WriteUnitOfWork wuow(opCtx); AutoGetDb autoDb(opCtx, nss.db(), LockMode::MODE_IX); Lock::CollectionLock collLock(opCtx, nss, MODE_IX); - auto db = autoDb.ensureDbExists(); + auto db = autoDb.ensureDbExists(opCtx); db->createCollection(opCtx, nss); wuow.commit(); }); |