diff options
author | Benety Goh <benety@mongodb.com> | 2014-03-18 01:05:56 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2014-03-18 13:42:17 -0400 |
commit | 0de6511419aee109f2fb997e14b596f6295c90a8 (patch) | |
tree | 024a1f03da09f7f707316f52bd519a39d0cf551c /jstests | |
parent | 63861f53c4e12fdd3efbcde57e6a1c8d12e675c0 (diff) | |
download | mongo-0de6511419aee109f2fb997e14b596f6295c90a8.tar.gz |
SERVER-13241 increased buffer size for stats in curop from 512 to 2048
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/core/profile4.js | 6 | ||||
-rw-r--r-- | jstests/profile4.js | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/jstests/core/profile4.js b/jstests/core/profile4.js index ce211045cd4..63940ed1530 100644 --- a/jstests/core/profile4.js +++ b/jstests/core/profile4.js @@ -96,6 +96,12 @@ try { t.find().sort( {a:1} ).itcount(); checkLastOp( [ [ "scanAndOrder", true ] ] ); + t.ensureIndex( {a:1} ); + t.find( {a:1} ).itcount(); + o = lastOp(); + assert.eq( "FETCH", o.execStats.type, tojson( o.execStats ) ); + assert.eq( "IXSCAN", o.execStats.children[0].type, tojson( o.execStats ) ); + db.setProfilingLevel(0); db.system.profile.drop(); } diff --git a/jstests/profile4.js b/jstests/profile4.js index e9b315e2ae2..83bc0a27c7e 100644 --- a/jstests/profile4.js +++ b/jstests/profile4.js @@ -90,6 +90,12 @@ try { t.find().sort( {a:1} ).itcount(); checkLastOp( [ [ "scanAndOrder", true ] ] ); + t.ensureIndex( {a:1} ); + t.find( {a:1} ).itcount(); + o = lastOp(); + assert.eq( "FETCH", o.execStats.type, tojson( o.execStats ) ); + assert.eq( "IXSCAN", o.execStats.children[0].type, tojson( o.execStats ) ); + db.setProfilingLevel(0); db.system.profile.drop(); } |