convert massert and uassert back to macros
This commit is contained in:
@@ -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() );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user