summaryrefslogtreecommitdiff
path: root/src/mongo/db/service_context_noop.cpp
diff options
context:
space:
mode:
authorsamantharitter <samantha.ritter@10gen.com>2017-04-05 16:48:16 -0400
committersamantharitter <samantha.ritter@10gen.com>2017-04-12 13:17:21 -0400
commit7dc10fd9d845756bb983fe1637dece6f3d37b981 (patch)
treefdb3d1042f0cfa4c5f1eb5b5994615021d174f99 /src/mongo/db/service_context_noop.cpp
parent56b8f03ca7c0c6a315a30a7a41bd781540dedde8 (diff)
downloadmongo-7dc10fd9d845756bb983fe1637dece6f3d37b981.tar.gz
SERVER-28298 Allow OperationContext objects to be created with an optional LogicalSessionId
Diffstat (limited to 'src/mongo/db/service_context_noop.cpp')
-rw-r--r--src/mongo/db/service_context_noop.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/service_context_noop.cpp b/src/mongo/db/service_context_noop.cpp
index 4e9b67fc28f..42fd30f3f3c 100644
--- a/src/mongo/db/service_context_noop.cpp
+++ b/src/mongo/db/service_context_noop.cpp
@@ -67,8 +67,9 @@ StorageFactoriesIterator* ServiceContextNoop::makeStorageFactoriesIterator() {
return new EmptySFI();
}
-std::unique_ptr<OperationContext> ServiceContextNoop::_newOpCtx(Client* client, unsigned opId) {
- return stdx::make_unique<OperationContextNoop>(client, opId);
+std::unique_ptr<OperationContext> ServiceContextNoop::_newOpCtx(
+ Client* client, unsigned opId, boost::optional<LogicalSessionId> lsid) {
+ return stdx::make_unique<OperationContextNoop>(client, opId, std::move(lsid));
}
void ServiceContextNoop::setOpObserver(std::unique_ptr<OpObserver> opObserver) {}