summaryrefslogtreecommitdiff
path: root/src/mongo/db/transaction_history_iterator_test.cpp
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2020-12-15 18:41:14 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-12-17 21:16:53 +0000
commit6364c95692fbf3cd48c5ba13772eede90b61fe86 (patch)
treeea832087fea452fde6ca8678277147a958bad8b2 /src/mongo/db/transaction_history_iterator_test.cpp
parentf6abb42a511110023ceb130e45787ff881e7a2e9 (diff)
downloadmongo-6364c95692fbf3cd48c5ba13772eede90b61fe86.tar.gz
SERVER-49904 Create new oplog type to attach metadata during runtime
Diffstat (limited to 'src/mongo/db/transaction_history_iterator_test.cpp')
-rw-r--r--src/mongo/db/transaction_history_iterator_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/transaction_history_iterator_test.cpp b/src/mongo/db/transaction_history_iterator_test.cpp
index f165b216418..f6d97a50229 100644
--- a/src/mongo/db/transaction_history_iterator_test.cpp
+++ b/src/mongo/db/transaction_history_iterator_test.cpp
@@ -60,7 +60,7 @@ namespace {
repl::OplogEntry makeOplogEntry(repl::OpTime opTime,
BSONObj docToInsert,
boost::optional<repl::OpTime> prevWriteOpTimeInTransaction) {
- return repl::OplogEntry(
+ return {repl::DurableOplogEntry(
opTime, // optime
0, // hash
repl::OpTypeEnum::kInsert, // opType
@@ -78,7 +78,7 @@ repl::OplogEntry makeOplogEntry(repl::OpTime opTime,
boost::none, // pre-image optime
boost::none, // post-image optime
boost::none, // ShardId of resharding recipient
- boost::none); // _id
+ boost::none)}; // _id
}
} // namespace