diff options
author | Eliot Horowitz <eliot@10gen.com> | 2013-12-19 18:54:39 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2013-12-22 20:21:50 -0500 |
commit | be828115141bb24373fcf395a8140e289a8e9b89 (patch) | |
tree | 15c70b923db7e1898c74a6ea4408cb2a9a36dfe0 /jstests/core/batch_write_command_insert.js | |
parent | 30f296cb008dff4936545fceb94a6c247e633b67 (diff) | |
download | mongo-be828115141bb24373fcf395a8140e289a8e9b89.tar.gz |
SERVER-11611: re-write user insert paths to not use DataFileMgr, and use Collection directly
Diffstat (limited to 'jstests/core/batch_write_command_insert.js')
-rw-r--r-- | jstests/core/batch_write_command_insert.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/jstests/core/batch_write_command_insert.js b/jstests/core/batch_write_command_insert.js index 5f48ccdb085..7f1ac78f7a9 100644 --- a/jstests/core/batch_write_command_insert.js +++ b/jstests/core/batch_write_command_insert.js @@ -102,6 +102,8 @@ coll.ensureIndex({a : 1}, {unique : true}); // Should fail single insert due to duplicate key coll.remove({}); coll.insert({a:1}); +print( coll.count() ); +printjson( coll.findOne() ); printjson( request = {insert : coll.getName(), documents: [{a:1}]} ); printjson( result = coll.runCommand(request) ); assert(result.ok); |