# File lib/mongo/session.rb, line 457 def retry_writes? !!client.options[:retry_writes] && (cluster.replica_set? || cluster.sharded?) end