diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-08-17 23:36:13 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-08-17 23:36:13 -0400 |
commit | c520e0be0b9b49a4926d2aceba16350969315946 (patch) | |
tree | 97a29e63c4aefeeb7ba6d644b5e9461e1a9dd3c0 | |
parent | d4435681b510407cf2ba83f338a3a925efaeb1ec (diff) | |
download | mongo-c520e0be0b9b49a4926d2aceba16350969315946.tar.gz |
fix assert
-rw-r--r-- | db/index.h | 4 |
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 { |