diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-10-21 01:01:52 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-10-21 01:01:52 -0400 |
commit | d54681458cad23fd6f4d1a2f5cfe8d8e15a9466e (patch) | |
tree | 761e672176e042c1a52de44d1286b105407673d5 /jstests/update2.js | |
parent | d188a16d18ef16f0bf4d48b40bdfd44bc6ae8fcd (diff) | |
download | mongo-d54681458cad23fd6f4d1a2f5cfe8d8e15a9466e.tar.gz |
$inc/$set work even if indexes - not 100% efficient now - SERVER-108
Diffstat (limited to 'jstests/update2.js')
-rw-r--r-- | jstests/update2.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/update2.js b/jstests/update2.js index ff9783348d4..654914c1f45 100644 --- a/jstests/update2.js +++ b/jstests/update2.js @@ -9,7 +9,7 @@ f.drop(); f.save( { a: 4 } ); f.ensureIndex( { a: 1 } ); f.update( { a: 4 }, { $inc: { a: 2 } } ); -assert.eq( 4, f.findOne().a ); +assert.eq( 6, f.findOne().a ); // Verify that drop clears the index f.drop(); |