Permalink
Browse files

SERVER-12711 downgrade plan stats error logging from warning() to LOG(2)

  • Loading branch information...
1 parent 69314bc commit d9c5f2c2c0872519c68ec9200df9ff5ee7e7b071 @benety benety committed Feb 27, 2014
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/mongo/db/query/cached_plan_runner.cpp
View
12 src/mongo/db/query/cached_plan_runner.cpp
@@ -161,8 +161,8 @@ namespace mongo {
// If plan cache/collection is not available (due to runner being killed),
// leave alternate plans out of explain.
if (_collection == NULL) {
- warning() << "unable to get stats for alternate plans for explain - "
- << "collection is not available. killed: " << _killed;
+ LOG(2) << "unable to get stats for alternate plans for explain - "
+ << "collection is not available. killed: " << _killed;
std::vector<PlanStageStats*> emptyStats;
return explainMultiPlan(*stats, emptyStats, _solution.get(), explain);
}
@@ -174,16 +174,16 @@ namespace mongo {
// As long as we have the winning stats, we should always try
// to generate the explain report even if the candidate stats are not available.
if (!result.isOK()) {
- warning() << "unable to get stats for alternate plans for explain - "
- << "plan cache not available: " << result;
+ LOG(2) << "unable to get stats for alternate plans for explain - "
+ << "plan cache not available: " << result;
std::vector<PlanStageStats*> emptyStats;
return explainMultiPlan(*stats, emptyStats, _solution.get(), explain);
}
scoped_ptr<PlanCacheEntry> entry(entryRaw);
if (entry->decision->stats.empty()) {
- warning() << "unable to get stats for alternate plans for explain - "
- << "plan cache is missing stats";
+ LOG(2) << "unable to get stats for alternate plans for explain - "
+ << "plan cache is missing stats";
std::vector<PlanStageStats*> emptyStats;
return explainMultiPlan(*stats, emptyStats, _solution.get(), explain);
}

0 comments on commit d9c5f2c

Please sign in to comment.