diff options
author | Xuerui Fa <xuerui.fa@mongodb.com> | 2019-09-04 14:59:16 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-09-04 14:59:16 +0000 |
commit | d9d50312ccdfcfb628d89f34c0dcda05c8f921bc (patch) | |
tree | 80048c4ee4b5f6bbd2bb5ee8ffa047721fcc90e5 /src/mongo/db/ops | |
parent | e58bc0f552112f5c1c16f8092b771f7e562316fb (diff) | |
download | mongo-d9d50312ccdfcfb628d89f34c0dcda05c8f921bc.tar.gz |
SERVER-42589 Made the wall field in oplog_entry.idl a required field
Diffstat (limited to 'src/mongo/db/ops')
-rw-r--r-- | src/mongo/db/ops/write_ops_retryability_test.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/mongo/db/ops/write_ops_retryability_test.cpp b/src/mongo/db/ops/write_ops_retryability_test.cpp index 550744fa95c..2956efeb7cf 100644 --- a/src/mongo/db/ops/write_ops_retryability_test.cpp +++ b/src/mongo/db/ops/write_ops_retryability_test.cpp @@ -70,7 +70,7 @@ repl::OplogEntry makeOplogEntry(repl::OpTime opTime, o2Field, // o2 {}, // sessionInfo boost::none, // upsert - boost::none, // wall clock time + Date_t(), // wall clock time boost::none, // statement id boost::none, // optime of previous write within same transaction preImageOpTime, // pre-image optime @@ -83,7 +83,8 @@ TEST_F(WriteOpsRetryability, ParseOplogEntryForUpdate) { << "u" << "ns" << "a.b" - << "o" << BSON("_id" << 1 << "x" << 5) << "o2" << BSON("_id" << 1)))); + << "wall" << Date_t() << "o" << BSON("_id" << 1 << "x" << 5) << "o2" + << BSON("_id" << 1)))); auto res = parseOplogEntryForUpdate(entry); @@ -112,12 +113,12 @@ TEST_F(WriteOpsRetryability, ParseOplogEntryForNestedUpdate) { } TEST_F(WriteOpsRetryability, ParseOplogEntryForUpsert) { - const auto entry = - assertGet(repl::OplogEntry::parse(BSON("ts" << Timestamp(50, 10) << "t" << 1LL << "op" - << "i" - << "ns" - << "a.b" - << "o" << BSON("_id" << 1 << "x" << 5)))); + const auto entry = assertGet(repl::OplogEntry::parse( + BSON("ts" << Timestamp(50, 10) << "t" << 1LL << "op" + << "i" + << "ns" + << "a.b" + << "wall" << Date_t() << "o" << BSON("_id" << 1 << "x" << 5)))); auto res = parseOplogEntryForUpdate(entry); |