From 797db1f61ffa77b8e55d4cdaefde45388692d979 Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Fri, 14 May 2010 11:20:55 -0400 Subject: better repl debugging --- db/repl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/repl.cpp b/db/repl.cpp index 137c25fe512..a0ac16e9bc1 100644 --- a/db/repl.cpp +++ b/db/repl.cpp @@ -1053,7 +1053,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", ts.type() == Date || ts.type() == Timestamp ); + massert( 10386 , (string)"non Date ts found:" + last.jsonString() , ts.type() == Date || ts.type() == Timestamp ); syncedTo = OpTime( ts.date() ); } } -- cgit v1.2.1