summaryrefslogtreecommitdiff
path: root/src/mongo/db/operation_context_impl.cpp
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_impl.cpp
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_impl.cpp')
-rw-r--r--src/mongo/db/operation_context_impl.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/operation_context_impl.cpp b/src/mongo/db/operation_context_impl.cpp
index dde8ded49c1..2dc5e5be1f1 100644
--- a/src/mongo/db/operation_context_impl.cpp
+++ b/src/mongo/db/operation_context_impl.cpp
@@ -34,6 +34,7 @@
#include "mongo/db/repl/is_master.h"
#include "mongo/db/storage/mmap_v1/dur_recovery_unit.h"
+
namespace mongo {
OperationContextImpl::OperationContextImpl() {
@@ -44,6 +45,11 @@ namespace mongo {
return _recovery.get();
}
+ LockState* OperationContextImpl::lockState() const {
+ // TODO: This will eventually become member of OperationContextImpl
+ return &cc().lockState();
+ }
+
ProgressMeter* OperationContextImpl::setMessage(const char* msg,
const std::string& name,
unsigned long long progressMeterTotal,