diff options
author | Benety Goh <benety@mongodb.com> | 2017-11-01 19:08:53 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2017-11-06 15:13:37 -0500 |
commit | 929570fc836a5940781b6809aa79ab9d6a1a1536 (patch) | |
tree | bca28d84c5214932ca1650b23be32670261395bd /src/mongo/db/repl/apply_ops_test.cpp | |
parent | dc04d7d6f22e6542f9f20cf33cd40015cefcf530 (diff) | |
download | mongo-929570fc836a5940781b6809aa79ab9d6a1a1536.tar.gz |
SERVER-31300 applyOps() adds missing UUID to individual operations in the oplog entry
Diffstat (limited to 'src/mongo/db/repl/apply_ops_test.cpp')
-rw-r--r-- | src/mongo/db/repl/apply_ops_test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/repl/apply_ops_test.cpp b/src/mongo/db/repl/apply_ops_test.cpp index c7e14bf6cfc..1f1984245b2 100644 --- a/src/mongo/db/repl/apply_ops_test.cpp +++ b/src/mongo/db/repl/apply_ops_test.cpp @@ -242,9 +242,9 @@ TEST_F(ApplyOpsTest, AtomicApplyOpsInsertWithoutUuidIntoCollectionWithUuid) { BSONObjBuilder resultBuilder; ASSERT_OK(applyOps(opCtx.get(), "test", cmdObj, &resultBuilder)); - // TODO (SERVER-31300): Insert operation provided by caller did not contain collection uuid but - // applyOps() should add the uuid to the oplog entry. - auto expectedCmdObj = cmdObj; + // Insert operation provided by caller did not contain collection uuid but applyOps() should add + // the uuid to the oplog entry. + auto expectedCmdObj = makeApplyOpsWithInsertOperation(nss, uuid, documentToInsert); ASSERT_BSONOBJ_EQ(expectedCmdObj, _opObserver->onApplyOpsCmdObj); } |