diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2022-06-30 20:13:00 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-07-06 15:17:27 +0000 |
commit | 501b2dc980abcc8090cff1998141af30b42d8dd1 (patch) | |
tree | 804539df912dd3857cea6116851df468190877b3 /src/mongo/db/query/explain.cpp | |
parent | 3cc20216a850af1d4bf63956740d73e8fc3779df (diff) | |
download | mongo-501b2dc980abcc8090cff1998141af30b42d8dd1.tar.gz |
SERVER-67709 rename visit_helper
Diffstat (limited to 'src/mongo/db/query/explain.cpp')
-rw-r--r-- | src/mongo/db/query/explain.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/mongo/db/query/explain.cpp b/src/mongo/db/query/explain.cpp index 4aa6e7bad7f..8c7796209cb 100644 --- a/src/mongo/db/query/explain.cpp +++ b/src/mongo/db/query/explain.cpp @@ -61,9 +61,9 @@ #include "mongo/db/server_options.h" #include "mongo/util/hex.h" #include "mongo/util/net/socket_utils.h" +#include "mongo/util/overloaded_visitor.h" #include "mongo/util/str.h" #include "mongo/util/version.h" -#include "mongo/util/visit_helper.h" namespace mongo { namespace { @@ -433,15 +433,14 @@ void Explain::planCacheEntryToBSON(const PlanCacheEntry& entry, BSONObjBuilder* } } - auto explainer = - stdx::visit(visit_helper::Overloaded{[](const plan_ranker::StatsDetails&) { - return plan_explainer_factory::make(nullptr); - }, - [](const plan_ranker::SBEStatsDetails&) { - return plan_explainer_factory::make( - nullptr, nullptr, nullptr); - }}, - debugInfo.decision->stats); + auto explainer = stdx::visit( + OverloadedVisitor{[](const plan_ranker::StatsDetails&) { + return plan_explainer_factory::make(nullptr); + }, + [](const plan_ranker::SBEStatsDetails&) { + return plan_explainer_factory::make(nullptr, nullptr, nullptr); + }}, + debugInfo.decision->stats); auto plannerStats = explainer->getCachedPlanStats(debugInfo, ExplainOptions::Verbosity::kQueryPlanner); auto execStats = |