summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops
diff options
context:
space:
mode:
authorXuerui Fa <xuerui.fa@mongodb.com>2019-09-04 14:59:16 +0000
committerevergreen <evergreen@mongodb.com>2019-09-04 14:59:16 +0000
commitd9d50312ccdfcfb628d89f34c0dcda05c8f921bc (patch)
tree80048c4ee4b5f6bbd2bb5ee8ffa047721fcc90e5 /src/mongo/db/ops
parente58bc0f552112f5c1c16f8092b771f7e562316fb (diff)
downloadmongo-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.cpp17
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);