diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-06-24 15:26:18 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2017-06-27 09:56:58 -0400 |
commit | 8fe4426fa36587ca40a0b6c8f1c84fd9aa61e5cf (patch) | |
tree | 80441172024fa0d6e752e5766aacbbce8f706703 /src/mongo/db/query/query_test_service_context.cpp | |
parent | b7f7d746eba8ec30d059352c811e9ac57618b3bd (diff) | |
download | mongo-8fe4426fa36587ca40a0b6c8f1c84fd9aa61e5cf.tar.gz |
SERVER-29852 Store session id and transaction number on all commands' OperationContext
Diffstat (limited to 'src/mongo/db/query/query_test_service_context.cpp')
-rw-r--r-- | src/mongo/db/query/query_test_service_context.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/query/query_test_service_context.cpp b/src/mongo/db/query/query_test_service_context.cpp index 4ad6ac8e857..d752db15664 100644 --- a/src/mongo/db/query/query_test_service_context.cpp +++ b/src/mongo/db/query/query_test_service_context.cpp @@ -30,6 +30,7 @@ #include "mongo/db/query/query_test_service_context.h" +#include "mongo/db/operation_context.h" #include "mongo/db/query/collation/collator_factory_mock.h" #include "mongo/stdx/memory.h" @@ -46,7 +47,9 @@ ServiceContext::UniqueOperationContext QueryTestServiceContext::makeOperationCon ServiceContext::UniqueOperationContext QueryTestServiceContext::makeOperationContext( LogicalSessionId lsid) { - return _uniqueClient->makeOperationContext(std::move(lsid)); + auto opCtx = makeOperationContext(); + opCtx->setLogicalSessionId(lsid); + return opCtx; } Client* QueryTestServiceContext::getClient() const { |