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

better sync cluster update diagnostics

This commit is contained in:
Eliot Horowitz 2011-02-18 01:56:48 -05:00
parent cd5a958c31
commit b2ad6e7657

View File

@ -304,7 +304,15 @@ namespace mongo {
if ( a == b )
continue;
throw UpdateNotTheSame( 8017 , "update not consistent" , _connAddresses , _lastErrors );
throw UpdateNotTheSame( 8017 ,
str::stream()
<< "update not consistent "
<< " ns: " << ns
<< " query: " << query.toString()
<< " update: " << obj
<< " gle1: " << _lastErrors[0]
<< " gle2: " << _lastErrors[i] ,
_connAddresses , _lastErrors );
}
}
}