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/service_context_noop.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/service_context_noop.cpp')
-rw-r--r-- | src/mongo/db/service_context_noop.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mongo/db/service_context_noop.cpp b/src/mongo/db/service_context_noop.cpp index 993d7fccfeb..64e1388b80e 100644 --- a/src/mongo/db/service_context_noop.cpp +++ b/src/mongo/db/service_context_noop.cpp @@ -35,8 +35,9 @@ #include "mongo/stdx/memory.h" namespace mongo { + StorageEngine* ServiceContextNoop::getGlobalStorageEngine() { - return NULL; + return nullptr; } void ServiceContextNoop::initializeGlobalStorageEngine() {} @@ -66,9 +67,8 @@ StorageFactoriesIterator* ServiceContextNoop::makeStorageFactoriesIterator() { return new EmptySFI(); } -std::unique_ptr<OperationContext> ServiceContextNoop::_newOpCtx( - Client* client, unsigned opId, boost::optional<LogicalSessionId> lsid) { - return stdx::make_unique<OperationContextNoop>(client, opId, std::move(lsid)); +std::unique_ptr<OperationContext> ServiceContextNoop::_newOpCtx(Client* client, unsigned opId) { + return stdx::make_unique<OperationContextNoop>(client, opId); } void ServiceContextNoop::setOpObserver(std::unique_ptr<OpObserver> opObserver) {} @@ -76,4 +76,5 @@ void ServiceContextNoop::setOpObserver(std::unique_ptr<OpObserver> opObserver) { OpObserver* ServiceContextNoop::getOpObserver() { return nullptr; } + } // namespace mongo |