diff options
author | Nicholas Zolnierz <nicholas.zolnierz@mongodb.com> | 2019-10-17 16:56:51 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-10-17 16:56:51 +0000 |
commit | d78ab05ea802c80e10ed81a177bc0f7ba5e643a4 (patch) | |
tree | 975953b57ccecc3db4149549dd1c9316dc9b429b /jstests | |
parent | 194efdec2c508405e14c8f30c4c5a98f7e94bc49 (diff) | |
download | mongo-d78ab05ea802c80e10ed81a177bc0f7ba5e643a4.tar.gz |
SERVER-44018 Fix MR agg output mode 'reduce' and move JsExecution to decorator on op context
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/core/mr_outreduce.js | 3 | ||||
-rw-r--r-- | jstests/core/mr_outreduce2.js | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/jstests/core/mr_outreduce.js b/jstests/core/mr_outreduce.js index 33b338e5a86..ff9e297a5d2 100644 --- a/jstests/core/mr_outreduce.js +++ b/jstests/core/mr_outreduce.js @@ -57,8 +57,7 @@ assert.eq(tos(expected), tos(out.convertToSingleObject("value")), "B"); t.insert({_id: 5, a: [5, 6]}); out.insert({_id: 20, value: "10"}); // this is a sentinal to make sure it wasn't killed -assert.commandWorked( - t.mapReduce(m, r, {out: {reduce: outName, nonAtomic: true}, query: {_id: {$gt: 4}}})); +assert.commandWorked(t.mapReduce(m, r, {out: {reduce: outName}, query: {_id: {$gt: 4}}})); expected["5"]++; expected["6"] = 1; diff --git a/jstests/core/mr_outreduce2.js b/jstests/core/mr_outreduce2.js index 6e5468f5220..a309ad91af8 100644 --- a/jstests/core/mr_outreduce2.js +++ b/jstests/core/mr_outreduce2.js @@ -33,7 +33,7 @@ assert.eq(2, db[out].findOne({_id: 1}).value, "A1"); assert.eq(1, db[out].findOne({_id: 2}).value, "A2"); t.insert({_id: 4, x: 2}); -res = t.mapReduce(m, r, {out: {reduce: out}, query: {_id: {$gt: 3}}, finalize: null}); +res = t.mapReduce(m, r, {out: {reduce: out}, query: {_id: {$gt: 3}}}); assert.eq(2, db[out].findOne({_id: 1}).value, "B1"); assert.eq(2, db[out].findOne({_id: 2}).value, "B2"); |