Skip to content

Commit

Permalink
better sync cluster update diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
erh committed Feb 18, 2011
1 parent cd5a958 commit b2ad6e7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion client/syncclusterconnection.cpp
Expand Up @@ -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 );
}
}
}
Expand Down

0 comments on commit b2ad6e7

Please sign in to comment.