Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-30409

Turn Causal Consistency on

    • 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

            Assignee:
            misha.tyulenev@mongodb.com Misha Tyulenev (Inactive)
            Reporter:
            misha.tyulenev@mongodb.com Misha Tyulenev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: