-
Type: Task
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Sharding
-
Fully Compatible
-
Sharding 2017-10-02
To turn the Causal Consistency on in mongo shell need to
1. implement isCausal() function that returns true by default if its connected to >= 3.6 wire version.
Mongo.prototype.isCausal = function() { if (typeof this._isCausal !== 'undefined') { return this._isCausal; } return (this.getMinWireVersion() <= 6 && 6 <= this.getMaxWireVersion()); }
2. always use isCausal() instead of this._isCauasl
- duplicates
-
SERVER-28450 Implement shell support for causally consistent sessions
- Closed