lib/moped/cluster.rb in moped-1.5.2 vs lib/moped/cluster.rb in moped-1.5.3
- old
+ new
@@ -251,9 +251,12 @@
return yield node.apply_auth(auth)
rescue Errors::ConnectionFailure
warning(" MOPED: Connection failed to secondary node #{node.inspect}, trying next node.")
# That node's no good, so let's try the next one.
next
+ rescue Errors::ReplicaSetReconfigured
+ # That node's no good, so let's try the next one.
+ next
end
end
if retries > 0
# We couldn't find a secondary or primary node, so refresh the list and