diff options
Diffstat (limited to 'src/mongo/db/client.h')
-rw-r--r-- | src/mongo/db/client.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/client.h b/src/mongo/db/client.h index bf1645e4e0f..2adcf7f6410 100644 --- a/src/mongo/db/client.h +++ b/src/mongo/db/client.h @@ -94,8 +94,10 @@ namespace mongo { /* report what the last operation was. used by getlasterror */ void appendLastOp( BSONObjBuilder& b ) const; + // TODO(spencer): SERVER-10228 SERVER-14779 Remove this/move it fully into OperationContext. bool isGod() const { return _god; } /* this is for map/reduce writes */ bool setGod(bool newVal) { const bool prev = _god; _god = newVal; return prev; } + void setRemoteID(const OID& rid) { _remoteId = rid; } OID getRemoteID() const { return _remoteId; } ConnectionId getConnectionId() const { return _connectionId; } |