summaryrefslogtreecommitdiff
path: root/src/mongo/db/session.cpp
diff options
context:
space:
mode:
authorJustin Seyster <justin.seyster@mongodb.com>2018-08-26 22:08:27 -0400
committerJustin Seyster <justin.seyster@mongodb.com>2018-08-26 22:08:27 -0400
commitb93c2dcc30de6f33f871ff2b8df88ac5afafbbc1 (patch)
tree28ef7d5e310dc8453a2129df04a2959878e087fe /src/mongo/db/session.cpp
parentf66a67ac3e80f4968506cab34ac35668d65a13e6 (diff)
downloadmongo-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.cpp4
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;