Permalink
Browse files

fix bug in cloner introduced today

  • Loading branch information...
1 parent 3e8b09f commit bf779e5078c13c55e5985965a4c86ebe5092d807 dwight committed Jul 1, 2010
Showing with 3 additions and 2 deletions.
  1. +1 −0 db/cloner.cpp
  2. +2 −2 jstests/index10.js
View
1 db/cloner.cpp
@@ -280,6 +280,7 @@ namespace mongo {
try {
inDBRepair = true;
ensureIdIndexForNewNs(to_name.c_str());
+ inDBRepair = old;
}
catch(...) {
inDBRepair = old;
View
4 jstests/index10.js
@@ -14,9 +14,9 @@ assert.eq( 5, t.count() );
t.dropIndexes();
t.ensureIndex( {i:1}, true );
err = db.getLastErrorObj();
-assert( err.err );
+assert( err.err , "err.err" );
assert.eq( 11000, err.code );
-assert.eq( 1, db.system.indexes.count( {ns:"test.jstests_index10" } ) ); // only id index
+assert( 1 == db.system.indexes.count( {ns:"test.jstests_index10" } ), "only id index" );
// t.dropIndexes();
ts = t.totalIndexSize();

0 comments on commit bf779e5

Please sign in to comment.