diff options
author | David Hatch <david.hatch@mongodb.com> | 2016-07-15 17:17:26 -0400 |
---|---|---|
committer | David Hatch <david.hatch@mongodb.com> | 2016-07-20 17:25:21 -0400 |
commit | 5ecb390a5ec416b995f2049c1fdc25c84d2c885a (patch) | |
tree | 3c8908a571c5638f66c3dc901632f0497d5b97f2 /jstests/core/profile_mapreduce.js | |
parent | 4f763e1509ab88aef9c9e7db45d9699f94382bf2 (diff) | |
download | mongo-5ecb390a5ec416b995f2049c1fdc25c84d2c885a.tar.gz |
SERVER-24063 Add collation to logs, profile and currentOp.
Diffstat (limited to 'jstests/core/profile_mapreduce.js')
-rw-r--r-- | jstests/core/profile_mapreduce.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/jstests/core/profile_mapreduce.js b/jstests/core/profile_mapreduce.js index 2538862ebba..20e3b2e8fbf 100644 --- a/jstests/core/profile_mapreduce.js +++ b/jstests/core/profile_mapreduce.js @@ -30,7 +30,9 @@ } assert.commandWorked(coll.createIndex({a: 1})); - coll.mapReduce(mapFunction, reduceFunction, {query: {a: {$gte: 0}}, out: {inline: 1}}); + coll.mapReduce(mapFunction, + reduceFunction, + {query: {a: {$gte: 0}}, out: {inline: 1}, collation: {locale: "fr"}}); var profileObj = getLatestProfilerEntry(testDB); @@ -42,6 +44,7 @@ assert(profileObj.execStats.hasOwnProperty("stage"), tojson(profileObj)); assert.eq(profileObj.protocol, getProfilerProtocolStringForCommand(conn), tojson(profileObj)); assert.eq(coll.getName(), profileObj.command.mapreduce, tojson(profileObj)); + assert.eq({locale: "fr"}, profileObj.command.collation, tojson(profileObj)); assert(profileObj.hasOwnProperty("responseLength"), tojson(profileObj)); assert(profileObj.hasOwnProperty("millis"), tojson(profileObj)); assert(profileObj.hasOwnProperty("numYield"), tojson(profileObj)); |