summaryrefslogtreecommitdiff
path: root/src/mongo/db/client.h
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2015-03-27 17:43:14 -0400
committerAndy Schwerin <schwerin@mongodb.com>2015-04-06 10:16:28 -0400
commitb3ee68fcf2b20cb9846d98bbc0ec60c76f93bb0f (patch)
tree49de5fa145af4a484e02a22c47714fa0dcf1a197 /src/mongo/db/client.h
parent90b7f774b818a1038cc525a9fca14207d8d5ff71 (diff)
downloadmongo-b3ee68fcf2b20cb9846d98bbc0ec60c76f93bb0f.tar.gz
SERVER-17817 Move Locker cache in Client onto a decoration.
Diffstat (limited to 'src/mongo/db/client.h')
-rw-r--r--src/mongo/db/client.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/mongo/db/client.h b/src/mongo/db/client.h
index 90cc2ff669f..b37b86bb4e9 100644
--- a/src/mongo/db/client.h
+++ b/src/mongo/db/client.h
@@ -40,7 +40,6 @@
#include <boost/thread/thread.hpp>
#include "mongo/db/client_basic.h"
-#include "mongo/db/concurrency/d_concurrency.h"
#include "mongo/db/lasterror.h"
#include "mongo/db/namespace_string.h"
#include "mongo/db/operation_context.h"
@@ -53,7 +52,6 @@ namespace mongo {
class CurOp;
class Collection;
class AbstractMessagingPort;
- class Locker;
TSP_DECLARE(Client, currentClient)
@@ -103,9 +101,6 @@ namespace mongo {
CurOp* curop() const { return _curOp; }
const std::string& desc() const { return _desc; }
- // Return a reference to the Locker for this client. Client retains ownership.
- Locker* getLocker();
-
void reportState(BSONObjBuilder& builder);
// Ensures stability of the client's OperationContext. When the client is locked,
@@ -153,10 +148,6 @@ namespace mongo {
// Changes, based on what operation is running. Some of this should be in OperationContext.
CurOp* _curOp;
- // By having Client, rather than the OperationContext, own the Locker, setup cost such as
- // allocating OS resources can be amortized over multiple operations.
- boost::scoped_ptr<Locker> _locker;
-
// Tracks if Client::shutdown() gets called (TODO: Is this necessary?)
bool _shutdown;
};