diff options
Diffstat (limited to 'src/mongo/dbtests/indexupdatetests.cpp')
-rw-r--r-- | src/mongo/dbtests/indexupdatetests.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/dbtests/indexupdatetests.cpp b/src/mongo/dbtests/indexupdatetests.cpp index e9989e1c90d..13f405678bd 100644 --- a/src/mongo/dbtests/indexupdatetests.cpp +++ b/src/mongo/dbtests/indexupdatetests.cpp @@ -92,7 +92,7 @@ protected: try { MultiIndexBlock indexer; - auto abortOnExit = makeGuard([&] { + ScopeGuard abortOnExit([&] { indexer.abortIndexBuild(_opCtx, collection(), MultiIndexBlock::kNoopOnCleanUpFn); }); @@ -160,7 +160,7 @@ public: << static_cast<int>(kIndexVersion) << "unique" << true << "background" << background); - auto abortOnExit = makeGuard([&] { + ScopeGuard abortOnExit([&] { indexer.abortIndexBuild(_opCtx, collection(), MultiIndexBlock::kNoopOnCleanUpFn); }); @@ -215,7 +215,7 @@ public: << "key" << BSON("a" << 1) << "v" << static_cast<int>(kIndexVersion) << "unique" << true << "background" << background); - auto abortOnExit = makeGuard([&] { + ScopeGuard abortOnExit([&] { indexer.abortIndexBuild(_opCtx, collection(), MultiIndexBlock::kNoopOnCleanUpFn); }); @@ -331,7 +331,7 @@ Status IndexBuildBase::createIndex(const BSONObj& indexSpec) { Lock::CollectionLock collLk(_opCtx, _nss, MODE_X); MultiIndexBlock indexer; - auto abortOnExit = makeGuard( + ScopeGuard abortOnExit( [&] { indexer.abortIndexBuild(_opCtx, collection(), MultiIndexBlock::kNoopOnCleanUpFn); }); Status status = indexer.init(_opCtx, collection(), indexSpec, MultiIndexBlock::kNoopOnInitFn).getStatus(); |