diff options
author | samantharitter <samantha.ritter@10gen.com> | 2017-04-05 16:48:16 -0400 |
---|---|---|
committer | samantharitter <samantha.ritter@10gen.com> | 2017-04-12 13:17:21 -0400 |
commit | 7dc10fd9d845756bb983fe1637dece6f3d37b981 (patch) | |
tree | fdb3d1042f0cfa4c5f1eb5b5994615021d174f99 /src/mongo/db/service_context.cpp | |
parent | 56b8f03ca7c0c6a315a30a7a41bd781540dedde8 (diff) | |
download | mongo-7dc10fd9d845756bb983fe1637dece6f3d37b981.tar.gz |
SERVER-28298 Allow OperationContext objects to be created with an optional LogicalSessionId
Diffstat (limited to 'src/mongo/db/service_context.cpp')
-rw-r--r-- | src/mongo/db/service_context.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/service_context.cpp b/src/mongo/db/service_context.cpp index de50199c149..32e14c36aac 100644 --- a/src/mongo/db/service_context.cpp +++ b/src/mongo/db/service_context.cpp @@ -211,8 +211,9 @@ void ServiceContext::ClientDeleter::operator()(Client* client) const { delete client; } -ServiceContext::UniqueOperationContext ServiceContext::makeOperationContext(Client* client) { - auto opCtx = _newOpCtx(client, _nextOpId.fetchAndAdd(1)); +ServiceContext::UniqueOperationContext ServiceContext::makeOperationContext( + Client* client, boost::optional<LogicalSessionId> lsid) { + auto opCtx = _newOpCtx(client, _nextOpId.fetchAndAdd(1), std::move(lsid)); auto observer = _clientObservers.begin(); try { for (; observer != _clientObservers.cend(); ++observer) { |