summaryrefslogtreecommitdiff
path: root/src/mongo/db/operation_context_noop.h
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-05-19 13:41:28 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-05-20 13:03:25 -0400
commit9823bc1393f71baff06e6bb2d711c628eb7015bf (patch)
treec7d1eb13c51144ba424ded787c0549fe4c4e1b61 /src/mongo/db/operation_context_noop.h
parent24b08ff1d2b4688255675c91bc44b27fe21a23cb (diff)
downloadmongo-9823bc1393f71baff06e6bb2d711c628eb7015bf.tar.gz
SERVER-13961 Remove dependency on the TLS client from LockState
Also clean-up some of the code under LockState, in preparation from moving it under operation context.
Diffstat (limited to 'src/mongo/db/operation_context_noop.h')
-rw-r--r--src/mongo/db/operation_context_noop.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/operation_context_noop.h b/src/mongo/db/operation_context_noop.h
index b442f872ad9..c7503ca5526 100644
--- a/src/mongo/db/operation_context_noop.h
+++ b/src/mongo/db/operation_context_noop.h
@@ -44,6 +44,12 @@ namespace mongo {
return _recoveryUnit.get();
}
+ virtual LockState* lockState() const {
+ // TODO: Eventually, this should return an actual LockState object. For now,
+ // LockState depends on the whole world and is not necessary for testing.
+ return NULL;
+ }
+
virtual ProgressMeter* setMessage(const char* msg,
const std::string& name ,
unsigned long long progressMeterTotal,