summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-05-14 11:20:55 -0400
committerEliot Horowitz <eliot@10gen.com>2010-05-14 11:20:55 -0400
commit797db1f61ffa77b8e55d4cdaefde45388692d979 (patch)
treec17983d8cd59a476e96d2569668e39e60be8eefd
parent9243ee9097940afd7dcc8aa92e1bf01948ec3665 (diff)
downloadmongo-797db1f61ffa77b8e55d4cdaefde45388692d979.tar.gz
better repl debugging
-rw-r--r--db/repl.cpp2
1 files changed, 1 insertions, 1 deletions
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() );
}
}