mongoid/moped — pull request #91 by nviennot (2012-10-08 05:34:55+00:00)
Title: [BUG FIX] replica set reconfiguration handled gracefully

Two commits:

[BUG FIX] replica set reconfiguration handled gracefully for updates

It only with when using safe: true, otherwise data gets lost...

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

---

[BUG FIX] replica set reconfiguration handled gracefully for queries

When using consistency: strong

Stack trace when this happen:
Moped::Errors::QueryFailure: The operation: #{}, "$orderby"=>{:_id=>1}}
@fields=nil>
failed with error 13435: "not master and slaveOk=false"