From c4639a3e612a7b14a98f306d013f096f123dd78a Mon Sep 17 00:00:00 2001 From: Aaron Date: Tue, 23 Aug 2011 13:05:44 -0700 Subject: [PATCH] ignore op objects without valid ts fields, which can be the case with synthetic 'db' ops created slave side; should fix closeall bb failures --- db/repl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db/repl.cpp b/db/repl.cpp index 3d08f2324c0..a18d72582d4 100644 --- a/db/repl.cpp +++ b/db/repl.cpp @@ -535,7 +535,8 @@ namespace mongo { // Database is already present. return true; } - if ( ___databaseIgnorer.ignoreAt( db, op.getField( "ts" ).date() ) ) { + BSONElement ts = op.getField( "ts" ); + if ( ( ts.type() == Date || ts.type() == Timestamp ) && ___databaseIgnorer.ignoreAt( db, ts.date() ) ) { // Database is ignored due to a previous indication that it is // missing from master after optime "ts". return false;