diff options
author | Samy Lanka <samy.lanka@mongodb.com> | 2019-01-14 20:49:48 -0500 |
---|---|---|
committer | Samy Lanka <samy.lanka@mongodb.com> | 2019-01-17 15:57:29 -0500 |
commit | d764e1b6346726fc2e9259ba294d029d531ff38e (patch) | |
tree | e50e5dc8a61f42f1cbcad1deb854adf98ede8693 /src/mongo/db/ops/write_ops_retryability_test.cpp | |
parent | 9e87f6e272df4f97013dfccc4018efb79f68653a (diff) | |
download | mongo-d764e1b6346726fc2e9259ba294d029d531ff38e.tar.gz |
SERVER-36815 Remove references to oplog entry's hash field
Diffstat (limited to 'src/mongo/db/ops/write_ops_retryability_test.cpp')
-rw-r--r-- | src/mongo/db/ops/write_ops_retryability_test.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/mongo/db/ops/write_ops_retryability_test.cpp b/src/mongo/db/ops/write_ops_retryability_test.cpp index 613f6a8c4ab..c9ec5cfe27e 100644 --- a/src/mongo/db/ops/write_ops_retryability_test.cpp +++ b/src/mongo/db/ops/write_ops_retryability_test.cpp @@ -61,7 +61,7 @@ repl::OplogEntry makeOplogEntry(repl::OpTime opTime, boost::optional<repl::OpTime> preImageOpTime = boost::none, boost::optional<repl::OpTime> postImageOpTime = boost::none) { return repl::OplogEntry(opTime, // optime - 0, // hash + boost::none, // hash opType, // opType nss, // namespace boost::none, // uuid @@ -79,15 +79,15 @@ repl::OplogEntry makeOplogEntry(repl::OpTime opTime, } TEST_F(WriteOpsRetryability, ParseOplogEntryForUpdate) { - const auto entry = assertGet( - repl::OplogEntry::parse(BSON("ts" << Timestamp(50, 10) << "t" << 1LL << "h" << 0LL << "op" - << "u" - << "ns" - << "a.b" - << "o" - << BSON("_id" << 1 << "x" << 5) - << "o2" - << BSON("_id" << 1)))); + const auto entry = + assertGet(repl::OplogEntry::parse(BSON("ts" << Timestamp(50, 10) << "t" << 1LL << "op" + << "u" + << "ns" + << "a.b" + << "o" + << BSON("_id" << 1 << "x" << 5) + << "o2" + << BSON("_id" << 1)))); auto res = parseOplogEntryForUpdate(entry); @@ -116,13 +116,13 @@ TEST_F(WriteOpsRetryability, ParseOplogEntryForNestedUpdate) { } TEST_F(WriteOpsRetryability, ParseOplogEntryForUpsert) { - const auto entry = assertGet( - repl::OplogEntry::parse(BSON("ts" << Timestamp(50, 10) << "t" << 1LL << "h" << 0LL << "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" + << "o" + << BSON("_id" << 1 << "x" << 5)))); auto res = parseOplogEntryForUpdate(entry); |