diff options
author | Hugh Tong <hugh.tong@mongodb.com> | 2022-01-27 22:55:29 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-01-28 00:04:42 +0000 |
commit | f3b5c8b7ab5b2301a95cf588d9f20daf6c3df601 (patch) | |
tree | 32957750efeb494054c5ae3b5f37c30b1eb257dd /src/mongo/db/s/session_catalog_migration_source.cpp | |
parent | 50778bd2781eddb1efe57b688100d286c0b92383 (diff) | |
download | mongo-f3b5c8b7ab5b2301a95cf588d9f20daf6c3df601.tar.gz |
SERVER-62391 Add tenantId field to oplog entries
Diffstat (limited to 'src/mongo/db/s/session_catalog_migration_source.cpp')
-rw-r--r-- | src/mongo/db/s/session_catalog_migration_source.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/s/session_catalog_migration_source.cpp b/src/mongo/db/s/session_catalog_migration_source.cpp index 8d76e22c655..ce330604c81 100644 --- a/src/mongo/db/s/session_catalog_migration_source.cpp +++ b/src/mongo/db/s/session_catalog_migration_source.cpp @@ -142,10 +142,13 @@ repl::OplogEntry makeOplogEntry(repl::OpTime opTime, const OperationSessionInfo& sessionInfo, Date_t wallClockTime, const std::vector<StmtId>& statementIds) { + // This code is never expected to run in Serverless, since Serverless does not use chunk + // migration, and therefore is never expected to pass a tenant id return { repl::DurableOplogEntry(opTime, // optime hash, // hash opType, // op type + boost::none, // tenant id {}, // namespace boost::none, // uuid boost::none, // fromMigrate |