module Mongo::Operation::CausallyConsistent

Encapsulates behaviour for adding a causal consistency doc to the command.

@since 2.5.0

Private Instance Methods

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