0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

SyncClusterConnection support for --dur

This commit is contained in:
Mathias Stearn 2011-01-14 15:11:31 -05:00
parent 56f648f07a
commit d56aef4fa6

View File

@ -121,7 +121,7 @@ namespace mongo {
for ( size_t i = 0; i<_conns.size(); i++ ) {
BSONObj res = _lastErrors[i];
if ( res["ok"].trueValue() && res["fsyncFiles"].numberInt() > 0 )
if ( res["ok"].trueValue() && (res["fsyncFiles"].numberInt() > 0 || res.hasElement("waited")))
continue;
ok = false;
err << _conns[i]->toString() << ": " << res << " " << errors[i];