diff options
author | Randolph Tan <randolph@10gen.com> | 2020-12-15 18:41:14 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-12-17 21:16:53 +0000 |
commit | 6364c95692fbf3cd48c5ba13772eede90b61fe86 (patch) | |
tree | ea832087fea452fde6ca8678277147a958bad8b2 /src/mongo/db/s/session_catalog_migration_source.cpp | |
parent | f6abb42a511110023ceb130e45787ff881e7a2e9 (diff) | |
download | mongo-6364c95692fbf3cd48c5ba13772eede90b61fe86.tar.gz |
SERVER-49904 Create new oplog type to attach metadata during runtime
Diffstat (limited to 'src/mongo/db/s/session_catalog_migration_source.cpp')
-rw-r--r-- | src/mongo/db/s/session_catalog_migration_source.cpp | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/src/mongo/db/s/session_catalog_migration_source.cpp b/src/mongo/db/s/session_catalog_migration_source.cpp index 565a42cbaa9..7708ad1c963 100644 --- a/src/mongo/db/s/session_catalog_migration_source.cpp +++ b/src/mongo/db/s/session_catalog_migration_source.cpp @@ -85,24 +85,25 @@ repl::OplogEntry makeOplogEntry(repl::OpTime opTime, const OperationSessionInfo& sessionInfo, Date_t wallClockTime, const boost::optional<StmtId>& statementId) { - return repl::OplogEntry(opTime, // optime - hash, // hash - opType, // op type - {}, // namespace - boost::none, // uuid - boost::none, // fromMigrate - repl::OplogEntry::kOplogVersion, // version - oField, // o - o2Field, // o2 - sessionInfo, // session info - boost::none, // upsert - wallClockTime, // wall clock time - statementId, // statement id - boost::none, // optime of previous write within same transaction - boost::none, // pre-image optime - boost::none, // post-image optime - boost::none, // ShardId of resharding recipient - boost::none); // _id + return { + repl::DurableOplogEntry(opTime, // optime + hash, // hash + opType, // op type + {}, // namespace + boost::none, // uuid + boost::none, // fromMigrate + repl::OplogEntry::kOplogVersion, // version + oField, // o + o2Field, // o2 + sessionInfo, // session info + boost::none, // upsert + wallClockTime, // wall clock time + statementId, // statement id + boost::none, // optime of previous write within same transaction + boost::none, // pre-image optime + boost::none, // post-image optime + boost::none, // ShardId of resharding recipient + boost::none)}; // _id } /** |