summaryrefslogtreecommitdiff
path: root/src/mongo/db/client.h
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@mongodb.com>2014-11-20 17:52:17 -0500
committerSpencer T Brody <spencer@mongodb.com>2014-12-01 16:32:32 -0500
commit038ddab4c9144daed30d4c2982d5b3319d551e61 (patch)
treeb3d613773611f40495ce621f1e610bcd6fe292a1 /src/mongo/db/client.h
parent06928da7d219ac9085d666274af4a82d81e99d4c (diff)
downloadmongo-038ddab4c9144daed30d4c2982d5b3319d551e61.tar.gz
SERVER-15310 Kill all user operations on stepdown.
Diffstat (limited to 'src/mongo/db/client.h')
-rw-r--r--src/mongo/db/client.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/client.h b/src/mongo/db/client.h
index eb1dc8a91ad..840a3f0d4c9 100644
--- a/src/mongo/db/client.h
+++ b/src/mongo/db/client.h
@@ -212,6 +212,7 @@ namespace mongo {
void setRemoteID(const OID& rid) { _remoteId = rid; } // Only used for master/slave
OID getRemoteID() const { return _remoteId; } // Only used for master/slave
ConnectionId getConnectionId() const { return _connectionId; }
+ bool isFromUserConnection() const { return _connectionId > 0; }
private:
Client(const std::string& desc, AbstractMessagingPort *p = 0);