diff options
author | samantharitter <samantha.ritter@10gen.com> | 2017-06-14 18:10:25 -0400 |
---|---|---|
committer | samantharitter <samantha.ritter@10gen.com> | 2017-06-14 18:10:25 -0400 |
commit | 65828661c6579989fdbb43f2c21de16f2bf72586 (patch) | |
tree | b181eaf074e40a095639be071f2e2ef53a5004b9 /src/mongo/db/query/query_test_service_context.h | |
parent | 6c0e2884a22a82d57f2cef12756fc6a7609e20c9 (diff) | |
download | mongo-65828661c6579989fdbb43f2c21de16f2bf72586.tar.gz |
SERVER-29417 Attach logical session ids to cursors
Diffstat (limited to 'src/mongo/db/query/query_test_service_context.h')
-rw-r--r-- | src/mongo/db/query/query_test_service_context.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/query/query_test_service_context.h b/src/mongo/db/query/query_test_service_context.h index 7466116d354..658b73ef36a 100644 --- a/src/mongo/db/query/query_test_service_context.h +++ b/src/mongo/db/query/query_test_service_context.h @@ -29,6 +29,7 @@ #pragma once #include "mongo/db/client.h" +#include "mongo/db/logical_session_id.h" #include "mongo/db/service_context_noop.h" namespace mongo { @@ -44,6 +45,10 @@ public: ServiceContext::UniqueOperationContext makeOperationContext(); + ServiceContext::UniqueOperationContext makeOperationContext(LogicalSessionId lsid); + + Client* getClient() const; + private: ServiceContextNoop _serviceContext; ServiceContext::UniqueClient _uniqueClient; |