summaryrefslogtreecommitdiff
path: root/src/mongo/db/service_context_noop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/service_context_noop.cpp')
-rw-r--r--src/mongo/db/service_context_noop.cpp9
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