diff options
author | Justin Seyster <justin.seyster@mongodb.com> | 2018-08-26 22:08:27 -0400 |
---|---|---|
committer | Justin Seyster <justin.seyster@mongodb.com> | 2018-08-26 22:08:27 -0400 |
commit | b93c2dcc30de6f33f871ff2b8df88ac5afafbbc1 (patch) | |
tree | 28ef7d5e310dc8453a2129df04a2959878e087fe /src/mongo/db/session.cpp | |
parent | f66a67ac3e80f4968506cab34ac35668d65a13e6 (diff) | |
download | mongo-b93c2dcc30de6f33f871ff2b8df88ac5afafbbc1.tar.gz |
SERVER-36224 Refactor Collection::updateDocument args
Previously, Collection::updateDocument expected to get a namespace and
UUID from its OplogEntryUpdateArgs, but that is not necessary, because
the collection already knows its own namespace and UUID. This caused a
problem in DurableViewCatalogImpl::upsert(), which did not set the
UUID value in the args, leading to oplog entries without their UUID
value.
Diffstat (limited to 'src/mongo/db/session.cpp')
-rw-r--r-- | src/mongo/db/session.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/db/session.cpp b/src/mongo/db/session.cpp index cc4d3dbe42a..7ac9ff46f24 100644 --- a/src/mongo/db/session.cpp +++ b/src/mongo/db/session.cpp @@ -198,9 +198,7 @@ void updateSessionEntry(OperationContext* opCtx, const UpdateRequest& updateRequ throw WriteConflictException(); } - OplogUpdateEntryArgs args; - args.nss = NamespaceString::kSessionTransactionsTableNamespace; - args.uuid = collection->uuid(); + CollectionUpdateArgs args; args.update = updateRequest.getUpdates(); args.criteria = toUpdateIdDoc; args.fromMigrate = false; |