diff options
Diffstat (limited to 'src/mongo/db/client.h')
-rw-r--r-- | src/mongo/db/client.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/client.h b/src/mongo/db/client.h index da62bca48d1..b83ce05c9c0 100644 --- a/src/mongo/db/client.h +++ b/src/mongo/db/client.h @@ -220,8 +220,8 @@ namespace mongo { const OperationContext* getOperationContext() const { return _txn; } // 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; } + bool isInDirectClient() const { return _inDirectClient; } + void setInDirectClient(bool newVal) { _inDirectClient = newVal; } // Only used for master/slave void setRemoteID(const OID& rid) { _remoteId = rid; } @@ -249,7 +249,7 @@ namespace mongo { mutable SpinLock _lock; // Whether this client is running as DBDirectClient - bool _god; + bool _inDirectClient; // If != NULL, then contains the currently active OperationContext OperationContext* _txn; |