Details
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().