summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/dbtests.cpp
diff options
context:
space:
mode:
authorLouis Williams <louis.williams@mongodb.com>2019-02-05 13:05:27 -0500
committerLouis Williams <louis.williams@mongodb.com>2019-02-12 13:15:24 +1100
commit7defb111584754daefece019f9045e1f0e1811ef (patch)
tree31c63fcffcdd8a6eaf4e5c614eeef54d381224a2 /src/mongo/dbtests/dbtests.cpp
parente4f593b3dee7808d27c9db54c517ab198f5d9f89 (diff)
downloadmongo-7defb111584754daefece019f9045e1f0e1811ef.tar.gz
SERVER-39068 Replicate startIndexBuild and commitIndexBuild oplog entrires
Diffstat (limited to 'src/mongo/dbtests/dbtests.cpp')
-rw-r--r--src/mongo/dbtests/dbtests.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/dbtests/dbtests.cpp b/src/mongo/dbtests/dbtests.cpp
index 4f1d6fe71e1..fb9e10b1b63 100644
--- a/src/mongo/dbtests/dbtests.cpp
+++ b/src/mongo/dbtests/dbtests.cpp
@@ -105,7 +105,7 @@ Status createIndexFromSpec(OperationContext* opCtx, StringData ns, const BSONObj
wunit.commit();
}
MultiIndexBlock indexer(opCtx, coll);
- Status status = indexer.init(spec).getStatus();
+ Status status = indexer.init(spec, MultiIndexBlock::kNoopOnInitFn).getStatus();
if (status == ErrorCodes::IndexAlreadyExists) {
return Status::OK();
}
@@ -121,7 +121,8 @@ Status createIndexFromSpec(OperationContext* opCtx, StringData ns, const BSONObj
return status;
}
WriteUnitOfWork wunit(opCtx);
- ASSERT_OK(indexer.commit());
+ ASSERT_OK(
+ indexer.commit(MultiIndexBlock::kNoopOnCreateEachFn, MultiIndexBlock::kNoopOnCommitFn));
wunit.commit();
return Status::OK();
}