summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline
diff options
context:
space:
mode:
authorHugh Tong <hugh.tong@mongodb.com>2022-01-27 22:55:29 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-01-28 00:04:42 +0000
commitf3b5c8b7ab5b2301a95cf588d9f20daf6c3df601 (patch)
tree32957750efeb494054c5ae3b5f37c30b1eb257dd /src/mongo/db/pipeline
parent50778bd2781eddb1efe57b688100d286c0b92383 (diff)
downloadmongo-f3b5c8b7ab5b2301a95cf588d9f20daf6c3df601.tar.gz
SERVER-62391 Add tenantId field to oplog entries
Diffstat (limited to 'src/mongo/db/pipeline')
-rw-r--r--src/mongo/db/pipeline/document_source_change_stream_test.cpp4
-rw-r--r--src/mongo/db/pipeline/document_source_find_and_modify_image_lookup_test.cpp1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/document_source_change_stream_test.cpp b/src/mongo/db/pipeline/document_source_change_stream_test.cpp
index eaf44eb21aa..7b9788f2842 100644
--- a/src/mongo/db/pipeline/document_source_change_stream_test.cpp
+++ b/src/mongo/db/pipeline/document_source_change_stream_test.cpp
@@ -380,6 +380,7 @@ public:
repl::DurableOplogEntry(opTime ? *opTime : kDefaultOpTime, // optime
hash, // hash
opType, // opType
+ boost::none, // tenant id
nss, // namespace
uuid, // uuid
fromMigrate, // fromMigrate
@@ -1396,6 +1397,7 @@ TEST_F(ChangeStreamStageTest, CommitCommandReturnsOperationsFromPreparedTransact
repl::DurableOplogEntry(kDefaultOpTime, // optime
1LL, // hash
OpTypeEnum::kCommand, // opType
+ boost::none, // tenant id
nss.getCommandNS(), // namespace
boost::none, // uuid
boost::none, // fromMigrate
@@ -1823,6 +1825,7 @@ TEST_F(ChangeStreamStageTest, PreparedTransactionWithMultipleOplogEntries) {
kDefaultOpTime, // optime
1LL, // hash
OpTypeEnum::kCommand, // opType
+ boost::none, // tenant id
nss.getCommandNS(), // namespace
boost::none, // uuid
boost::none, // fromMigrate
@@ -1966,6 +1969,7 @@ TEST_F(ChangeStreamStageTest, PreparedTransactionEndingWithEmptyApplyOps) {
kDefaultOpTime, // optime
1LL, // hash
OpTypeEnum::kCommand, // opType
+ boost::none, // tenant id
nss.getCommandNS(), // namespace
boost::none, // uuid
boost::none, // fromMigrate
diff --git a/src/mongo/db/pipeline/document_source_find_and_modify_image_lookup_test.cpp b/src/mongo/db/pipeline/document_source_find_and_modify_image_lookup_test.cpp
index 71c1f486c17..3c6fee87639 100644
--- a/src/mongo/db/pipeline/document_source_find_and_modify_image_lookup_test.cpp
+++ b/src/mongo/db/pipeline/document_source_find_and_modify_image_lookup_test.cpp
@@ -67,6 +67,7 @@ repl::OplogEntry makeOplogEntry(
repl::DurableOplogEntry(opTime, // optime
boost::none, // hash
opType, // opType
+ boost::none, // tenant id
nss, // namespace
*uuid, // uuid
boost::none, // fromMigrate