diff options
Diffstat (limited to 'jstests/replsets/rollback3.js')
-rwxr-xr-x | jstests/replsets/rollback3.js | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/jstests/replsets/rollback3.js b/jstests/replsets/rollback3.js index 2b5fa344e30..e09ce84a11c 100755 --- a/jstests/replsets/rollback3.js +++ b/jstests/replsets/rollback3.js @@ -120,18 +120,18 @@ function doItemsToRollBack(db) { // two to see if we transitively rollback? db.oldname.renameCollection("newname"); - db.newname.renameCollection("fooname");
-
- assert(db.fooname.count() > 0, "count rename");
-
- // test roll back (drop) a whole database
- abc = db.getSisterDB("abc");
- abc.foo.insert({ x: 1 });
- abc.bar.insert({ y: 999 });
-
- // test making and dropping a database
- //mkd = db.getSisterDB("mkd");
- //mkd.c.insert({ y: 99 });
+ db.newname.renameCollection("fooname"); + + assert(db.fooname.count() > 0, "count rename"); + + // test roll back (drop) a whole database + abc = db.getSisterDB("abc"); + abc.foo.insert({ x: 1 }); + abc.bar.insert({ y: 999 }); + + // test making and dropping a database + //mkd = db.getSisterDB("mkd"); + //mkd.c.insert({ y: 99 }); //mkd.dropDatabase(); } @@ -217,4 +217,4 @@ doTest = function (signal) { } print("rollback3.js"); -doTest( 15 );
+doTest( 15 ); |