summaryrefslogtreecommitdiff
path: root/src/mongo/db/op_observer/op_observer_impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/op_observer/op_observer_impl.cpp')
-rw-r--r--src/mongo/db/op_observer/op_observer_impl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/op_observer/op_observer_impl.cpp b/src/mongo/db/op_observer/op_observer_impl.cpp
index b2bf057d5a7..2a9a08e8195 100644
--- a/src/mongo/db/op_observer/op_observer_impl.cpp
+++ b/src/mongo/db/op_observer/op_observer_impl.cpp
@@ -314,6 +314,8 @@ void logGlobalIndexDDLOperation(OperationContext* opCtx,
MutableOplogEntry oplogEntry;
oplogEntry.setOpType(repl::OpTypeEnum::kCommand);
oplogEntry.setObject(builder.done());
+ // The 'ns' field is technically redundant as it can be derived from the uuid, however it's a
+ // required oplog entry field.
oplogEntry.setNss(globalIndexNss.getCommandNS());
oplogEntry.setUuid(globalIndexUUID);