Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fix bug in cloner introduced today

  • Loading branch information...
commit bf779e5078c13c55e5985965a4c86ebe5092d807 1 parent 3e8b09f
dwight authored

Showing 2 changed files with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. +1 0  db/cloner.cpp
  2. +2 2 jstests/index10.js
1  db/cloner.cpp
@@ -280,6 +280,7 @@ namespace mongo {
280 280 try {
281 281 inDBRepair = true;
282 282 ensureIdIndexForNewNs(to_name.c_str());
  283 + inDBRepair = old;
283 284 }
284 285 catch(...) {
285 286 inDBRepair = old;
4 jstests/index10.js
@@ -14,9 +14,9 @@ assert.eq( 5, t.count() );
14 14 t.dropIndexes();
15 15 t.ensureIndex( {i:1}, true );
16 16 err = db.getLastErrorObj();
17   -assert( err.err );
  17 +assert( err.err , "err.err" );
18 18 assert.eq( 11000, err.code );
19   -assert.eq( 1, db.system.indexes.count( {ns:"test.jstests_index10" } ) ); // only id index
  19 +assert( 1 == db.system.indexes.count( {ns:"test.jstests_index10" } ), "only id index" );
20 20 // t.dropIndexes();
21 21
22 22 ts = t.totalIndexSize();

0 comments on commit bf779e5

Please sign in to comment.
Something went wrong with that request. Please try again.