summaryrefslogtreecommitdiff
path: root/jstests/or4.js
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2010-05-20 11:16:19 -0700
committerAaron <aaron@10gen.com>2010-05-20 11:16:19 -0700
commite4424bbe838935dadad08a4eec8714f91a80e507 (patch)
treed72a5fe2dcd94c3550eb0a8a4b5efc4964e8335f /jstests/or4.js
parent1b3225224b1eea5992889220592473eebc6a42cb (diff)
downloadmongo-e4424bbe838935dadad08a4eec8714f91a80e507.tar.gz
SERVER-109 handle no index match case in remove
Diffstat (limited to 'jstests/or4.js')
-rw-r--r--jstests/or4.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/or4.js b/jstests/or4.js
index c27ed72c3bd..45171ba5faf 100644
--- a/jstests/or4.js
+++ b/jstests/or4.js
@@ -11,7 +11,10 @@ t.save( {a:2,b:3} );
assert.eq.automsg( "3", "t.count( {$or:[{a:2},{b:3}]} )" );
assert.eq.automsg( "2", "t.count( {$or:[{a:2},{a:2}]} )" );
t.remove({ $or: [{ a: 2 }, { b: 3}] });
+assert.eq.automsg( "0", "t.count()" );
+t.save( {b:3} );
+t.remove({ $or: [{ a: 2 }, { b: 3}] });
assert.eq.automsg( "0", "t.count()" );
t.save( {a:2} );