summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/oplog_entry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/oplog_entry.cpp')
-rw-r--r--src/mongo/db/repl/oplog_entry.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/repl/oplog_entry.cpp b/src/mongo/db/repl/oplog_entry.cpp
index 0ce5be7ddc9..219dcb5be1c 100644
--- a/src/mongo/db/repl/oplog_entry.cpp
+++ b/src/mongo/db/repl/oplog_entry.cpp
@@ -131,9 +131,11 @@ ReplOperation makeGlobalIndexCrudOperation(const NamespaceString& indexNss,
const BSONObj& key,
const BSONObj& docKey) {
ReplOperation op;
+ // The 'ns' field is technically redundant as it can be derived from the uuid, however it's a
+ // required oplog entry field.
op.setNss(indexNss.getCommandNS());
op.setUuid(indexUuid);
- op.setObject(BSON("key" << key << "docKey" << docKey));
+ op.setObject(BSON("ik" << key << "dk" << docKey));
return op;
}
} // namespace