diff options
author | Spencer T Brody <spencer@mongodb.com> | 2014-08-04 14:56:39 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2014-08-04 17:52:28 -0400 |
commit | e42f601194d67cfbde44bfcfb33af8284e68ecc3 (patch) | |
tree | 12d0789a33099a01729b6c656fe93491d8ee428b /src/mongo/db/client.h | |
parent | d7133440dc8f05f0514d2b056d8605513b6e4d1b (diff) | |
download | mongo-e42f601194d67cfbde44bfcfb33af8284e68ecc3.tar.gz |
SERVER-10228 SERVER-14779 Add isGod() method to OperationContext; remove isGod method from ReplicationCoordinatorExternalState
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; } |