diff options
author | Hugh Tong <hugh.tong@mongodb.com> | 2022-09-09 20:46:33 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-09-09 22:07:25 +0000 |
commit | 18c39bc1e395412f1aa69d98a1ac1e39bfa48d9b (patch) | |
tree | d119a012df791d7a9f8b532a798cef6138a7fe66 /src/mongo/db/repl/oplog.cpp | |
parent | dcee93e444e5b6a96d73ed08eb6afacc41ccda82 (diff) | |
download | mongo-18c39bc1e395412f1aa69d98a1ac1e39bfa48d9b.tar.gz |
SERVER-62393 Apply CRUD ops using correct tenant namespace during oplog application
Diffstat (limited to 'src/mongo/db/repl/oplog.cpp')
-rw-r--r-- | src/mongo/db/repl/oplog.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mongo/db/repl/oplog.cpp b/src/mongo/db/repl/oplog.cpp index be4cc5863b4..03365f0db74 100644 --- a/src/mongo/db/repl/oplog.cpp +++ b/src/mongo/db/repl/oplog.cpp @@ -1599,8 +1599,12 @@ Status applyOperation_inlock(OperationContext* opCtx, // document. invariant(op.getObject2()); auto&& documentId = *op.getObject2(); - auto documentFound = Helpers::findById( - opCtx, collection->ns().ns(), documentId, changeStreamPreImage); + + // TODO SERVER-69541 pass in NamespaceString object instead + auto documentFound = Helpers::findById(opCtx, + collection->ns().toStringWithTenantId(), + documentId, + changeStreamPreImage); invariant(documentFound); } |