diff options
author | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2019-05-12 18:46:02 -0400 |
---|---|---|
committer | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2019-05-21 16:14:23 -0400 |
commit | eeccd88d262c45392ec9a642f57415cba36463e2 (patch) | |
tree | c02e32abc331732683c13cee88f2fdbd61953956 /src/mongo/db/s/session_catalog_migration_destination_test.cpp | |
parent | 62906f2fae85fc734e52e7190799072717374cbb (diff) | |
download | mongo-eeccd88d262c45392ec9a642f57415cba36463e2.tar.gz |
SERVER-39809 Remove the prepare root field of oplog entry
Diffstat (limited to 'src/mongo/db/s/session_catalog_migration_destination_test.cpp')
-rw-r--r-- | src/mongo/db/s/session_catalog_migration_destination_test.cpp | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/src/mongo/db/s/session_catalog_migration_destination_test.cpp b/src/mongo/db/s/session_catalog_migration_destination_test.cpp index ace7f227324..2bdd5d3b62a 100644 --- a/src/mongo/db/s/session_catalog_migration_destination_test.cpp +++ b/src/mongo/db/s/session_catalog_migration_destination_test.cpp @@ -88,25 +88,23 @@ repl::OplogEntry makeOplogEntry(repl::OpTime opTime, boost::optional<Date_t> wallClockTime, boost::optional<StmtId> stmtId, boost::optional<repl::OpTime> preImageOpTime = boost::none, - boost::optional<repl::OpTime> postImageOpTime = boost::none, - boost::optional<bool> prepare = boost::none) { - return repl::OplogEntry(opTime, // optime - 0, // hash - opType, // opType - kNs, // namespace - boost::none, // uuid - boost::none, // fromMigrate - 0, // version - object, // o - object2, // o2 - sessionInfo, // sessionInfo - boost::none, // isUpsert - wallClockTime, // wall clock time - stmtId, // statement id - boost::none, // optime of previous write within same transaction - preImageOpTime, // pre-image optime - postImageOpTime, // post-image optime - prepare); // prepare + boost::optional<repl::OpTime> postImageOpTime = boost::none) { + return repl::OplogEntry(opTime, // optime + 0, // hash + opType, // opType + kNs, // namespace + boost::none, // uuid + boost::none, // fromMigrate + 0, // version + object, // o + object2, // o2 + sessionInfo, // sessionInfo + boost::none, // isUpsert + wallClockTime, // wall clock time + stmtId, // statement id + boost::none, // optime of previous write within same transaction + preImageOpTime, // pre-image optime + postImageOpTime); // post-image optime } repl::OplogEntry extractInnerOplog(const repl::OplogEntry& oplog) { |