summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/plan_stage.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/exec/plan_stage.h')
-rw-r--r--src/mongo/db/exec/plan_stage.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/db/exec/plan_stage.h b/src/mongo/db/exec/plan_stage.h
index a096664b01d..289c99cc936 100644
--- a/src/mongo/db/exec/plan_stage.h
+++ b/src/mongo/db/exec/plan_stage.h
@@ -252,10 +252,8 @@ public:
*
* Creates plan stats tree which has the same topology as the original execution tree,
* but has a separate lifetime.
- *
- * Caller owns returned pointer.
*/
- virtual PlanStageStats* getStats() = 0;
+ virtual std::unique_ptr<PlanStageStats> getStats() = 0;
/**
* Get the CommonStats for this stage. The pointer is *not* owned by the caller.