[SERVER-30409] Turn Causal Consistency on Created: 28/Jul/17  Updated: 08/Jan/24  Resolved: 26/Sep/17

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Misha Tyulenev Assignee: Misha Tyulenev
Resolution: Duplicate Votes: 0
Labels: sharding36-passthrough-testing
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-28450 Implement shell support for causally ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2017-10-02
Participants:

 Description   

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


Generated at Thu Feb 08 04:23:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.