diff options
Diffstat (limited to 'src/mongo/db/commands/mr_test.cpp')
-rw-r--r-- | src/mongo/db/commands/mr_test.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/commands/mr_test.cpp b/src/mongo/db/commands/mr_test.cpp index d5b84f9483a..ad7c8d6ab38 100644 --- a/src/mongo/db/commands/mr_test.cpp +++ b/src/mongo/db/commands/mr_test.cpp @@ -540,8 +540,10 @@ TEST_F(MapReduceCommandTest, ReplacingExistingOutputCollectionPreservesIndexes) _opCtx.get(), "ReplacingExistingOutputCollectionPreservesIndexes", outputNss.ns(), [&] { WriteUnitOfWork wuow(_opCtx.get()); ASSERT_OK( - coll.getWritableCollection()->getIndexCatalog()->createIndexOnEmptyCollection( - _opCtx.get(), coll.getWritableCollection(), indexSpec)); + coll.getWritableCollection(_opCtx.get()) + ->getIndexCatalog() + ->createIndexOnEmptyCollection( + _opCtx.get(), coll.getWritableCollection(_opCtx.get()), indexSpec)); wuow.commit(); }); } |