diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-12-15 20:54:02 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-12-15 20:54:02 -0500 |
commit | a0d90a4478d3e954235e740977b3d91a43b56374 (patch) | |
tree | 4231253e7683454af29d86336ea3d792bda9dbe4 | |
parent | 697c07f8c954c5bcc983f5e6765599b4f6a63e19 (diff) | |
download | mongo-a0d90a4478d3e954235e740977b3d91a43b56374.tar.gz |
make --repair for a full repair
-rw-r--r-- | db/db.cpp | 2 |
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 ); |