diff options
author | samantharitter <samantha.ritter@10gen.com> | 2017-04-05 16:48:16 -0400 |
---|---|---|
committer | samantharitter <samantha.ritter@10gen.com> | 2017-04-12 13:17:21 -0400 |
commit | 7dc10fd9d845756bb983fe1637dece6f3d37b981 (patch) | |
tree | fdb3d1042f0cfa4c5f1eb5b5994615021d174f99 /src/mongo/db/exec/sort_test.cpp | |
parent | 56b8f03ca7c0c6a315a30a7a41bd781540dedde8 (diff) | |
download | mongo-7dc10fd9d845756bb983fe1637dece6f3d37b981.tar.gz |
SERVER-28298 Allow OperationContext objects to be created with an optional LogicalSessionId
Diffstat (limited to 'src/mongo/db/exec/sort_test.cpp')
-rw-r--r-- | src/mongo/db/exec/sort_test.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/exec/sort_test.cpp b/src/mongo/db/exec/sort_test.cpp index 5dfd2db70ab..8f200ffb0a3 100644 --- a/src/mongo/db/exec/sort_test.cpp +++ b/src/mongo/db/exec/sort_test.cpp @@ -32,6 +32,8 @@ #include "mongo/db/exec/sort.h" +#include <boost/optional.hpp> + #include "mongo/db/exec/queued_data_stage.h" #include "mongo/db/json.h" #include "mongo/db/operation_context_noop.h" @@ -53,7 +55,7 @@ public: _service = stdx::make_unique<ServiceContextNoop>(); _service.get()->setFastClockSource(stdx::make_unique<ClockSourceMock>()); _client = _service.get()->makeClient("test"); - _opCtxNoop.reset(new OperationContextNoop(_client.get(), 0)); + _opCtxNoop.reset(new OperationContextNoop(_client.get(), 0, boost::none)); _opCtx = _opCtxNoop.get(); CollatorFactoryInterface::set(_service.get(), stdx::make_unique<CollatorFactoryMock>()); } |