diff options
author | Eric Milkie <milkie@10gen.com> | 2018-05-23 15:37:08 -0400 |
---|---|---|
committer | Eric Milkie <milkie@10gen.com> | 2018-05-25 11:22:27 -0400 |
commit | ec2b67ac05f7aaa05b990e18cd7c23109a2e6eb7 (patch) | |
tree | 899c4ef72d930ae526966de94383b6eb8b1e9251 /src/mongo/db/operation_context_noop.h | |
parent | 8f170e92c1e874dc1ac3ebcdda2fd38afa92b258 (diff) | |
download | mongo-ec2b67ac05f7aaa05b990e18cd7c23109a2e6eb7.tar.gz |
SERVER-34790 ensure proper locks are held when doing reads or writes, via debug checks
Diffstat (limited to 'src/mongo/db/operation_context_noop.h')
-rw-r--r-- | src/mongo/db/operation_context_noop.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mongo/db/operation_context_noop.h b/src/mongo/db/operation_context_noop.h index a28a875fb8e..1f4e51c40f5 100644 --- a/src/mongo/db/operation_context_noop.h +++ b/src/mongo/db/operation_context_noop.h @@ -27,14 +27,12 @@ */ #pragma once -#include <boost/optional.hpp> +#include <memory> #include "mongo/db/concurrency/locker_noop.h" -#include "mongo/db/logical_session_id.h" #include "mongo/db/operation_context.h" #include "mongo/db/storage/recovery_unit_noop.h" -#include "mongo/stdx/memory.h" -#include "mongo/util/progress_meter.h" +#include "mongo/db/storage/write_unit_of_work.h" namespace mongo { @@ -57,7 +55,7 @@ public: OperationContextNoop(Client* client, unsigned int opId) : OperationContext(client, opId) { setRecoveryUnit(new RecoveryUnitNoop(), WriteUnitOfWork::RecoveryUnitState::kNotInUnitOfWork); - setLockState(stdx::make_unique<LockerNoop>()); + setLockState(std::make_unique<LockerNoop>()); } }; |