[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: SERVER-19377 PlanStage: make work() non-virt, add virt method doWork()

Changes PlanStage::work() to be non-virtual. PlanStage::work() now
updates _commonStats and calls new pure virtual method doWork().
Branch: master
https://github.com/mongodb/mongo/commit/09b89f0986550443a13af16b76ef04d91120bb2f

Comment by Qingyang Chen [ 23/Jul/15 ]

Warning: CollectionScan handles EOF weirdly due to tailable cursors.

Generated at Thu Feb 08 03:50:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.