summaryrefslogtreecommitdiff
path: root/src/mongo/db/operation_context_noop.h
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2018-05-23 15:37:08 -0400
committerEric Milkie <milkie@10gen.com>2018-05-25 11:22:27 -0400
commitec2b67ac05f7aaa05b990e18cd7c23109a2e6eb7 (patch)
tree899c4ef72d930ae526966de94383b6eb8b1e9251 /src/mongo/db/operation_context_noop.h
parent8f170e92c1e874dc1ac3ebcdda2fd38afa92b258 (diff)
downloadmongo-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.h8
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>());
}
};