diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2015-03-26 18:45:22 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2015-04-06 10:16:23 -0400 |
commit | 90b7f774b818a1038cc525a9fca14207d8d5ff71 (patch) | |
tree | 604285e3d69ef379626ddd8f0a57068c287ea2ef /src/mongo/db/client.h | |
parent | 387e39a07522aec114a64146871eab2e015d7444 (diff) | |
download | mongo-90b7f774b818a1038cc525a9fca14207d8d5ff71.tar.gz |
SERVER-17817 Move replication-specific data from Client into ReplClientInfo decoration.
Diffstat (limited to 'src/mongo/db/client.h')
-rw-r--r-- | src/mongo/db/client.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/mongo/db/client.h b/src/mongo/db/client.h index bd3f83667a5..90cc2ff669f 100644 --- a/src/mongo/db/client.h +++ b/src/mongo/db/client.h @@ -39,7 +39,6 @@ #include <boost/scoped_ptr.hpp> #include <boost/thread/thread.hpp> -#include "mongo/bson/optime.h" #include "mongo/db/client_basic.h" #include "mongo/db/concurrency/d_concurrency.h" #include "mongo/db/lasterror.h" @@ -103,14 +102,10 @@ namespace mongo { std::string clientAddress(bool includePort = false) const; CurOp* curop() const { return _curOp; } const std::string& desc() const { return _desc; } - void setLastOp(OpTime op) { _lastOp = op; } - OpTime getLastOp() const { return _lastOp; } // Return a reference to the Locker for this client. Client retains ownership. Locker* getLocker(); - /* report what the last operation was. used by getlasterror */ - void appendLastOp(BSONObjBuilder& b) const; void reportState(BSONObjBuilder& builder); // Ensures stability of the client's OperationContext. When the client is locked, @@ -128,10 +123,6 @@ namespace mongo { bool isInDirectClient() const { return _inDirectClient; } void setInDirectClient(bool newVal) { _inDirectClient = newVal; } - // Only used for master/slave - void setRemoteID(const OID& rid) { _remoteId = rid; } - OID getRemoteID() const { return _remoteId; } - ConnectionId getConnectionId() const { return _connectionId; } bool isFromUserConnection() const { return _connectionId > 0; } @@ -166,12 +157,6 @@ namespace mongo { // allocating OS resources can be amortized over multiple operations. boost::scoped_ptr<Locker> _locker; - // Used by replication - OpTime _lastOp; - - // Only used by master-slave - OID _remoteId; - // Tracks if Client::shutdown() gets called (TODO: Is this necessary?) bool _shutdown; }; |