diff options
Diffstat (limited to 'src/mongo/db/query/explain.h')
-rw-r--r-- | src/mongo/db/query/explain.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mongo/db/query/explain.h b/src/mongo/db/query/explain.h index ea57c48eef3..da9d3daff21 100644 --- a/src/mongo/db/query/explain.h +++ b/src/mongo/db/query/explain.h @@ -34,6 +34,7 @@ #include "mongo/db/query/plan_executor.h" #include "mongo/db/query/query_planner_params.h" #include "mongo/db/query/query_solution.h" +#include "mongo/db/query/type_explain.h" namespace mongo { @@ -146,6 +147,16 @@ namespace mongo { */ static void explainCountEmptyQuery(BSONObjBuilder* out); + /** + * Generate the legacy explain format from a PlanExecutor. + * + * On success, the caller owns 'explain'. + * + * TODO: THIS IS TEMPORARY. Once the legacy explain code is deleted, we won't + * need this anymore. + */ + static Status legacyExplain(PlanExecutor* exec, TypeExplain** explain); + private: /** * Converts the stats tree 'stats' into a corresponding BSON object containing |