summaryrefslogtreecommitdiff
path: root/jstests/replsets
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets')
-rw-r--r--jstests/replsets/rollback2.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/jstests/replsets/rollback2.js b/jstests/replsets/rollback2.js
index 0c7d26824bc..92016b46dcd 100644
--- a/jstests/replsets/rollback2.js
+++ b/jstests/replsets/rollback2.js
@@ -50,7 +50,9 @@ function doItemsToRollBack(db) {
t.insert({ q: 4 });
t.update({ q: 3 }, { q: 3, rb: true });
t.update({ q: 2 }, { q: 39, rb: true });
- // t.remove({q:1});
+
+ // rolling back a delete will involve reinserting the item(s)
+ t.remove({q:1});
}
function doWritesToKeep2(db) {