summaryrefslogtreecommitdiff
path: root/jstests/core/batch_write_command_insert.js
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2013-12-19 18:54:39 -0500
committerEliot Horowitz <eliot@10gen.com>2013-12-22 20:21:50 -0500
commitbe828115141bb24373fcf395a8140e289a8e9b89 (patch)
tree15c70b923db7e1898c74a6ea4408cb2a9a36dfe0 /jstests/core/batch_write_command_insert.js
parent30f296cb008dff4936545fceb94a6c247e633b67 (diff)
downloadmongo-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.js2
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);