module Mongo::Operation::CausalConsistencySupported

Custom behavior for operations that support the causally consistency.

@since 2.5.2

Private Instance Methods

apply_causal_consistency!(selector, server) click to toggle source
# File lib/mongo/operation/shared/causal_consistency_supported.rb, line 25
def apply_causal_consistency!(selector, server)
  if !server.standalone?
    full_read_concern_doc = session.send(:causal_consistency_doc, selector[:readConcern] || read_concern)
    selector[:readConcern] = full_read_concern_doc if full_read_concern_doc
  end
end