summaryrefslogtreecommitdiff
path: root/src/mongo/db/op_observer_impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/op_observer_impl.cpp')
-rw-r--r--src/mongo/db/op_observer_impl.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mongo/db/op_observer_impl.cpp b/src/mongo/db/op_observer_impl.cpp
index acfad92cd8c..8735e82e287 100644
--- a/src/mongo/db/op_observer_impl.cpp
+++ b/src/mongo/db/op_observer_impl.cpp
@@ -347,12 +347,10 @@ void OpObserverImpl::onStartIndexBuildSinglePhase(OperationContext* opCtx,
// 4. All other cases, we generate a timestamp by writing a no-op oplog entry. This is
// better than using a ghost timestamp. Writing an oplog entry ensures this node is
// primary.
- onInternalOpMessage(
- opCtx,
- {},
- boost::none,
- BSON("msg" << std::string(str::stream() << "Creating indexes. Coll: " << nss)),
- boost::none);
+ auto msg = BSON("msg"
+ << "Creating indexes"
+ << "coll" << nss.ns());
+ onOpMessage(opCtx, msg);
}
void OpObserverImpl::onCommitIndexBuild(OperationContext* opCtx,