Class/Module Index [+]

Quicksearch

Moped::Errors::PotentialReconfiguration

Classes of errors that could be caused by a replica set reconfiguration.

Constants

NOT_MASTER

Not master error codes.

Public Instance Methods

reconfiguring_replica_set?() click to toggle source

Replica set reconfigurations can be either in the form of an operation error with code 13435, or with an error message stating the server is not a master. (This encapsulates codes 10054, 10056, 10058)

# File lib/moped/errors.rb, line 108
def reconfiguring_replica_set?
  err = details["err"] || details["errmsg"] || details["$err"] || ""
  NOT_MASTER.include?(details["code"]) || err.include?("not master")
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.