summaryrefslogtreecommitdiff
path: root/src/mongo/db/op_observer_impl_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/op_observer_impl_test.cpp')
-rw-r--r--src/mongo/db/op_observer_impl_test.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/op_observer_impl_test.cpp b/src/mongo/db/op_observer_impl_test.cpp
index 6569b33bf1e..c000abe4d52 100644
--- a/src/mongo/db/op_observer_impl_test.cpp
+++ b/src/mongo/db/op_observer_impl_test.cpp
@@ -207,11 +207,13 @@ TEST_F(OpObserverTest, AbortIndexBuildExpectedOplogEntry) {
std::vector<BSONObj> specs = {specX, specA};
// Write to the oplog.
+ Status cause(ErrorCodes::OperationFailed, "index build failed");
{
AutoGetDb autoDb(opCtx.get(), nss.db(), MODE_X);
WriteUnitOfWork wunit(opCtx.get());
+ auto fromMigrate = false;
opObserver.onAbortIndexBuild(
- opCtx.get(), nss, uuid, indexBuildUUID, specs, false /*fromMigrate*/);
+ opCtx.get(), nss, uuid, indexBuildUUID, specs, cause, fromMigrate);
wunit.commit();
}