summaryrefslogtreecommitdiff
path: root/src/mongo/db/client.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2017-06-24 15:26:18 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2017-06-27 09:56:58 -0400
commit8fe4426fa36587ca40a0b6c8f1c84fd9aa61e5cf (patch)
tree80441172024fa0d6e752e5766aacbbce8f706703 /src/mongo/db/client.cpp
parentb7f7d746eba8ec30d059352c811e9ac57618b3bd (diff)
downloadmongo-8fe4426fa36587ca40a0b6c8f1c84fd9aa61e5cf.tar.gz
SERVER-29852 Store session id and transaction number on all commands' OperationContext
Diffstat (limited to 'src/mongo/db/client.cpp')
-rw-r--r--src/mongo/db/client.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/client.cpp b/src/mongo/db/client.cpp
index 6ecfeb3195b..ac195c79606 100644
--- a/src/mongo/db/client.cpp
+++ b/src/mongo/db/client.cpp
@@ -123,9 +123,8 @@ void Client::reportState(BSONObjBuilder& builder) {
}
}
-ServiceContext::UniqueOperationContext Client::makeOperationContext(
- boost::optional<LogicalSessionId> lsid) {
- return getServiceContext()->makeOperationContext(this, std::move(lsid));
+ServiceContext::UniqueOperationContext Client::makeOperationContext() {
+ return getServiceContext()->makeOperationContext(this);
}
void Client::setOperationContext(OperationContext* opCtx) {