mongoid/moped — pull request #116 by Winslett (2012-11-20 15:18:47+00:00)
Title: Recover gracefully from Step Down

When the Primary node would step down, we were seeing the following errors:

Moped::Errors::OperationFailure: The operation: #1, :safe=>true}
@fields=nil>
failed with error 10058: "not master"

See https://github.com/mongodb/mongo/blob/master/docs/errors.md

However, code "10058" was not being rescued properly in the node. With the addition of 10058, step downs recover gracefully with Moped.