summaryrefslogtreecommitdiff
path: root/jstests/gle
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2016-04-07 18:34:44 -0400
committerMathias Stearn <mathias@10gen.com>2016-04-21 18:58:41 -0400
commitd819ac65d1a0f941bd3e201f343ac04e252c4442 (patch)
treea531131c01f3816094d34cd845cfd71aec2e3459 /jstests/gle
parenta7a593da31a944c90d7c5f0422eeee8264eb438d (diff)
downloadmongo-d819ac65d1a0f941bd3e201f343ac04e252c4442.tar.gz
SERVER-23128 Refactor mongod write operations
Now both write commands and legacy writes share an implementation.
Diffstat (limited to 'jstests/gle')
-rw-r--r--jstests/gle/opcounters_legacy.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/gle/opcounters_legacy.js b/jstests/gle/opcounters_legacy.js
index c31494b6c01..b243b8bc076 100644
--- a/jstests/gle/opcounters_legacy.js
+++ b/jstests/gle/opcounters_legacy.js
@@ -46,20 +46,20 @@ opCounters = db.serverStatus().opcounters;
t.insert({_id: 0});
print(db.getLastError());
assert(db.getLastError());
-assert.eq(opCounters.insert + (isMongos ? 1 : 0), db.serverStatus().opcounters.insert);
+assert.eq(opCounters.insert + 1, db.serverStatus().opcounters.insert);
// Bulk insert, with error, continueOnError=false.
opCounters = db.serverStatus().opcounters;
t.insert([{_id: 3}, {_id: 3}, {_id: 4}]);
assert(db.getLastError());
-assert.eq(opCounters.insert + (isMongos ? 2 : 1), db.serverStatus().opcounters.insert);
+assert.eq(opCounters.insert + 2, db.serverStatus().opcounters.insert);
// Bulk insert, with error, continueOnError=true.
var continueOnErrorFlag = 1;
opCounters = db.serverStatus().opcounters;
t.insert([{_id: 5}, {_id: 5}, {_id: 6}], continueOnErrorFlag);
assert(db.getLastError());
-assert.eq(opCounters.insert + 2, db.serverStatus().opcounters.insert);
+assert.eq(opCounters.insert + (isMongos ? 2 : 3), db.serverStatus().opcounters.insert);
//
// 2. Update.