diff options
author | Martin Bligh <mbligh@mongodb.com> | 2015-09-11 08:49:27 -0400 |
---|---|---|
committer | Martin Bligh <mbligh@mongodb.com> | 2015-09-11 08:49:27 -0400 |
commit | ae0ca8279cf4899a2d2c1e81311e9709a10ff1df (patch) | |
tree | 10cc35adfc66433e6d6140d068d782e0ef5ef1a8 /jstests/gle | |
parent | 58c7ad85c90619d4fa0e7e4df3b9f4d643b9b73b (diff) | |
download | mongo-ae0ca8279cf4899a2d2c1e81311e9709a10ff1df.tar.gz |
SERVER-19564: Use write vectors for the "non-command" path of insertMulti
Diffstat (limited to 'jstests/gle')
-rw-r--r-- | jstests/gle/opcounters_legacy.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/gle/opcounters_legacy.js b/jstests/gle/opcounters_legacy.js index 27a02402779..2742be5f933 100644 --- a/jstests/gle/opcounters_legacy.js +++ b/jstests/gle/opcounters_legacy.js @@ -17,7 +17,7 @@ var opCounters; // - mongod, single insert: // counted as 1 op if successful, else 0 // - mongod, bulk insert of N with continueOnError=true: -// counted as N ops, regardless of errors +// counted as K ops, where K is number of docs successfully inserted // - mongod, bulk insert of N with continueOnError=false: // counted as K ops, where K is number of docs successfully inserted // @@ -57,7 +57,7 @@ var continueOnErrorFlag = 1; opCounters = db.serverStatus().opcounters; t.insert([{_id:5},{_id:5},{_id:6}], continueOnErrorFlag) assert(db.getLastError()); -assert.eq(opCounters.insert + 3, db.serverStatus().opcounters.insert); +assert.eq(opCounters.insert + 2, db.serverStatus().opcounters.insert); // // 2. Update. |