diff options
author | Shin Yee Tan <shinyee.tan@mongodb.com> | 2022-06-10 15:33:45 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-06-10 16:22:12 +0000 |
commit | d94f6725598eac9b617bd5b1d383254f174b089a (patch) | |
tree | 481475c6bde274498486ab971ec1db316ecd2493 /src/mongo/db/commands | |
parent | 3337f39b423aa94d0f3617b66232a0526a19ec83 (diff) | |
download | mongo-d94f6725598eac9b617bd5b1d383254f174b089a.tar.gz |
SERVER-62370 Remove the _opCtx from the CollectionWriter and instead use the passed in opCtx
Diffstat (limited to 'src/mongo/db/commands')
-rw-r--r-- | src/mongo/db/commands/drop_indexes.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/commands/drop_indexes.cpp b/src/mongo/db/commands/drop_indexes.cpp index 88326b20e48..e95da5c1378 100644 --- a/src/mongo/db/commands/drop_indexes.cpp +++ b/src/mongo/db/commands/drop_indexes.cpp @@ -235,8 +235,8 @@ public: "Uninitialized"); writeConflictRetry(opCtx, "dropAllIndexes", toReIndexNss.ns(), [&] { WriteUnitOfWork wunit(opCtx); - collection.getWritableCollection()->getIndexCatalog()->dropAllIndexes( - opCtx, collection.getWritableCollection(), true, {}); + collection.getWritableCollection(opCtx)->getIndexCatalog()->dropAllIndexes( + opCtx, collection.getWritableCollection(opCtx), true, {}); swIndexesToRebuild = indexer->init(opCtx, collection, all, MultiIndexBlock::kNoopOnInitFn); @@ -263,7 +263,7 @@ public: writeConflictRetry(opCtx, "commitReIndex", toReIndexNss.ns(), [&] { WriteUnitOfWork wunit(opCtx); uassertStatusOK(indexer->commit(opCtx, - collection.getWritableCollection(), + collection.getWritableCollection(opCtx), MultiIndexBlock::kNoopOnCreateEachFn, MultiIndexBlock::kNoopOnCommitFn)); wunit.commit(); |