diff options
author | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2018-02-28 23:45:50 -0500 |
---|---|---|
committer | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2018-03-05 18:08:47 -0500 |
commit | c7524de57dc3a9d829d8bce43e219c9e011094c5 (patch) | |
tree | 312818f1457c9682f1ef683375e25c767090f4f3 /src/mongo/db/repl/oplog_entry.cpp | |
parent | 3f94de87680764d74bfb219a07606d46c515cba6 (diff) | |
download | mongo-c7524de57dc3a9d829d8bce43e219c9e011094c5.tar.gz |
SERVER-33216 Implement commitTransaction command.
Diffstat (limited to 'src/mongo/db/repl/oplog_entry.cpp')
-rw-r--r-- | src/mongo/db/repl/oplog_entry.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/repl/oplog_entry.cpp b/src/mongo/db/repl/oplog_entry.cpp index cef46afc15c..45fafaf06e8 100644 --- a/src/mongo/db/repl/oplog_entry.cpp +++ b/src/mongo/db/repl/oplog_entry.cpp @@ -143,7 +143,7 @@ ReplOperation OplogEntry::makeInsertOperation(const NamespaceString& nss, op.setOpType(OpTypeEnum::kInsert); op.setNamespace(nss); op.setUuid(uuid); - op.setObject(docToInsert); + op.setObject(docToInsert.getOwned()); return op; } @@ -155,8 +155,8 @@ ReplOperation OplogEntry::makeUpdateOperation(const NamespaceString nss, op.setOpType(OpTypeEnum::kUpdate); op.setNamespace(nss); op.setUuid(uuid); - op.setObject(update); - op.setObject2(criteria); + op.setObject(update.getOwned()); + op.setObject2(criteria.getOwned()); return op; } @@ -167,7 +167,7 @@ ReplOperation OplogEntry::makeDeleteOperation(const NamespaceString& nss, op.setOpType(OpTypeEnum::kDelete); op.setNamespace(nss); op.setUuid(uuid); - op.setObject(docToDelete); + op.setObject(docToDelete.getOwned()); return op; } |