[SERVER-19377] Move CommonStats and timing code out of PlanStage::work() Created: 13/Jul/15 Updated: 05/Feb/16 Resolved: 14/Jan/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | None |
| Fix Version/s: | 3.3.1 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Qingyang Chen | Assignee: | J Rassi |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Sprint: | Query F (02/01/16) |
| Participants: |
| Description |
|
Every implementation of PlanStage::work() in its children classes has repeating code for working with its CommonStats and a timer. Move these boilerplate code to a common work() function in the parent PlanStage that then calls a doWork() function defined by the children with the rest of the code from the original work(). |
| Comments |
| Comment by Githook User [ 14/Jan/16 ] |
|
Author: {u'username': u'jrassi', u'name': u'Jason Rassi', u'email': u'rassi@10gen.com'}Message: Changes PlanStage::work() to be non-virtual. PlanStage::work() now |
| Comment by Qingyang Chen [ 23/Jul/15 ] |
|
Warning: CollectionScan handles EOF weirdly due to tailable cursors. |