summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2011-08-17 23:36:13 -0400
committerEliot Horowitz <eliot@10gen.com>2011-08-17 23:36:13 -0400
commitc520e0be0b9b49a4926d2aceba16350969315946 (patch)
tree97a29e63c4aefeeb7ba6d644b5e9461e1a9dd3c0
parentd4435681b510407cf2ba83f338a3a925efaeb1ec (diff)
downloadmongo-c520e0be0b9b49a4926d2aceba16350969315946.tar.gz
fix assert
-rw-r--r--db/index.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/db/index.h b/db/index.h
index 8bb1a30f821..d13bd1d4ade 100644
--- a/db/index.h
+++ b/db/index.h
@@ -147,7 +147,9 @@ namespace mongo {
void checkVersion() const {
// TODO: cache?
- massert( 13658 , str::stream() << "using a newer index version: " << info.obj() , info.obj().getIntField("v") == 0 );
+ massert( 13658 ,
+ str::stream() << "using a newer index version: " << info.obj() << " v: " << info.obj().getIntField("v" ) ,
+ info.obj().getIntField("v") <= 0 );
}
string toString() const {