diff options
author | James Wahlin <james.wahlin@10gen.com> | 2016-04-25 10:50:15 -0400 |
---|---|---|
committer | James Wahlin <james.wahlin@10gen.com> | 2016-04-26 13:06:22 -0400 |
commit | 66c992d4b93f0c9e0fbe400ccf95344ec9437823 (patch) | |
tree | ceafb7e55e65406d9e88a553c7eab9f0d140b624 /jstests/core/profile_mapreduce.js | |
parent | 992ef367f553b7b2c5f754ca7cfc3ce3769f6581 (diff) | |
download | mongo-66c992d4b93f0c9e0fbe400ccf95344ec9437823.tar.gz |
SERVER-23259 Report planSummary in diagnostic log and profiler
Diffstat (limited to 'jstests/core/profile_mapreduce.js')
-rw-r--r-- | jstests/core/profile_mapreduce.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/core/profile_mapreduce.js b/jstests/core/profile_mapreduce.js index 43ebdfea8f9..5ecdff262d7 100644 --- a/jstests/core/profile_mapreduce.js +++ b/jstests/core/profile_mapreduce.js @@ -1,5 +1,4 @@ // Confirms that profiled findAndModify execution contains all expected metrics with proper values. -// TODO SERVER-23261: Add planSummary. (function() { "use strict"; @@ -39,6 +38,7 @@ assert.eq(profileObj.op, "command", tojson(profileObj)); assert.eq(profileObj.keysExamined, 3, tojson(profileObj)); assert.eq(profileObj.docsExamined, 3, tojson(profileObj)); + assert.eq(profileObj.planSummary, "IXSCAN { a: 1.0 }", tojson(profileObj)); assert.eq(profileObj.protocol, getProfilerProtocolStringForCommand(conn), tojson(profileObj)); assert.eq(coll.getName(), profileObj.command.mapreduce, tojson(profileObj)); assert(profileObj.hasOwnProperty("responseLength"), tojson(profileObj)); |