summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2009-12-30 20:48:48 -0500
committerMathias Stearn <mathias@10gen.com>2009-12-30 20:48:48 -0500
commitce20d70bd02a5223744e6a82d1eadebac9b05f2b (patch)
tree162d7f17c51a2399cafb914cca08df01f67a0fa6
parent225173bb31d7536b9e402145c7f65db00e2523ab (diff)
downloadmongo-ce20d70bd02a5223744e6a82d1eadebac9b05f2b.tar.gz
oops. MINOR
-rw-r--r--jstests/find_and_modify.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/find_and_modify.js b/jstests/find_and_modify.js
index 0e56ce86678..5e10079db90 100644
--- a/jstests/find_and_modify.js
+++ b/jstests/find_and_modify.js
@@ -16,7 +16,7 @@ t.update({_id: out._id}, {$set: {inprogress: false}});
out = t.findAndModify({update: {$set: {inprogress: true}, $inc: {value:1}}, 'new': true});
assert.eq(out.value, 2);
assert.eq(out.inprogress, true);
-t.update({_id: out._id}, {$set: {inprogress: false}, value:0});
+t.update({_id: out._id}, {$set: {inprogress: false}});
// update highest priority
out = t.findAndModify({query: {inprogress:false}, sort:{priority:-1}, update: {$set: {inprogress: true}}});