summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-12-15 20:54:02 -0500
committerEliot Horowitz <eliot@10gen.com>2009-12-15 20:54:02 -0500
commita0d90a4478d3e954235e740977b3d91a43b56374 (patch)
tree4231253e7683454af29d86336ea3d792bda9dbe4
parent697c07f8c954c5bcc983f5e6765599b4f6a63e19 (diff)
downloadmongo-a0d90a4478d3e954235e740977b3d91a43b56374.tar.gz
make --repair for a full repair
-rw-r--r--db/db.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/db.cpp b/db/db.cpp
index 7ad0bc34b13..cd744f22f94 100644
--- a/db/db.cpp
+++ b/db/db.cpp
@@ -283,7 +283,7 @@ namespace mongo {
bool doDBUpgrade( const string& dbName , string errmsg , MDFHeader * h ){
static DBDirectClient db;
- if ( h->version == 4 && h->versionMinor == 4 ){
+ if ( forceRepair == false && h->version == 4 && h->versionMinor == 4 ){
assert( VERSION == 4 );
assert( VERSION_MINOR == 5 );