convert massert and uassert back to macros

This commit is contained in:
Mathias Stearn
2010-05-14 13:33:16 -04:00
parent e8a8a31b18
commit d060bfb595
6 changed files with 10 additions and 35 deletions

View File

@@ -1065,7 +1065,7 @@ namespace mongo {
BSONObj last = conn->findOne( _ns.c_str(), Query( b.done() ).sort( BSON( "$natural" << -1 ) ) );
if ( !last.isEmpty() ) {
BSONElement ts = last.getField( "ts" );
massert( 10386 , "non Date ts found", last, ts.type() == Date || ts.type() == Timestamp );
massert( 10386 , "non Date ts found: " + last.toString(), ts.type() == Date || ts.type() == Timestamp );
syncedTo = OpTime( ts.date() );
}
}