summaryrefslogtreecommitdiff
path: root/src/mongo/db/concurrency/locker_noop.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/concurrency/locker_noop.h')
-rw-r--r--src/mongo/db/concurrency/locker_noop.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/concurrency/locker_noop.h b/src/mongo/db/concurrency/locker_noop.h
index cfbd3234c2c..9e8d3b6300a 100644
--- a/src/mongo/db/concurrency/locker_noop.h
+++ b/src/mongo/db/concurrency/locker_noop.h
@@ -41,6 +41,10 @@ class LockerNoop : public Locker {
public:
LockerNoop() {}
+ virtual bool isNoop() const {
+ return true;
+ }
+
virtual ClientState getClientState() const {
invariant(false);
}