Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix bug in cloner introduced today

  • Loading branch information...
commit bf779e5078c13c55e5985965a4c86ebe5092d807 1 parent 3e8b09f
dwight authored
Showing with 3 additions and 2 deletions.
  1. +1 −0  db/cloner.cpp
  2. +2 −2 jstests/index10.js
1  db/cloner.cpp
View
@@ -280,6 +280,7 @@ namespace mongo {
try {
inDBRepair = true;
ensureIdIndexForNewNs(to_name.c_str());
+ inDBRepair = old;
}
catch(...) {
inDBRepair = old;
4 jstests/index10.js
View
@@ -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();
Please sign in to comment.
Something went wrong with that request. Please try again.