SERVER-127904ClosedGone away
Thread ExpCtx directly through to explain or PlanExecutorSBE
Currently, in explain.cpp we access the ExpCtx through the CanonicalQuery that is stored on the executor (e.g. PlanExecutorSBE) ([example#1|https://github.com/10gen/mongo/blob/ce3dae58890ef7aa9b82fe6423f4f0bc39c993cd/src/mongo/db/query/explain.cpp#L116], [example#2|https://github.com/10gen/mongo/blob/ce3dae58890ef7aa9b82fe6423f4f0bc39c993cd/src/mongo/db/query/explain.cpp#L144]). The code here makes the assumption that every executor will have a single CQ driving it and thus, it accesses the