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

try to fix jstests/dur/closeall.js

This commit is contained in:
Eliot Horowitz 2011-08-23 13:56:06 -04:00
parent 51493ee642
commit 3e1729e2b6

View File

@ -535,11 +535,19 @@ namespace mongo {
// Database is already present.
return true;
}
if ( ___databaseIgnorer.ignoreAt( db, op.getField( "ts" ).date() ) ) {
// Database is ignored due to a previous indication that it is
// missing from master after optime "ts".
return false;
{
const BSONElement e = op.getField( "ts" );
if ( e.eoo() ) {
warning() << "why is ts null: " << op << endl;
}
else if ( ___databaseIgnorer.ignoreAt( db, e._opTime() ) ) {
// Database is ignored due to a previous indication that it is
// missing from master after optime "ts".
return false;
}
}
if ( Database::duplicateUncasedName( db, dbpath ).empty() ) {
// No duplicate database names are present.
return true;