diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-05-14 11:20:55 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-05-14 11:20:55 -0400 |
commit | 797db1f61ffa77b8e55d4cdaefde45388692d979 (patch) | |
tree | c17983d8cd59a476e96d2569668e39e60be8eefd /db | |
parent | 9243ee9097940afd7dcc8aa92e1bf01948ec3665 (diff) | |
download | mongo-797db1f61ffa77b8e55d4cdaefde45388692d979.tar.gz |
better repl debugging
Diffstat (limited to 'db')
-rw-r--r-- | db/repl.cpp | 2 |
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() ); } } |