summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2014-02-27 10:59:20 -0500
committerBenety Goh <benety@mongodb.com>2014-02-27 10:59:20 -0500
commitd9c5f2c2c0872519c68ec9200df9ff5ee7e7b071 (patch)
tree4bdbef3b98ae19296cfd2f20c806e228ad9c0df1
parent69314bca2ca7a6831f4aa657eba231fac2196901 (diff)
downloadmongo-d9c5f2c2c0872519c68ec9200df9ff5ee7e7b071.tar.gz
SERVER-12711 downgrade plan stats error logging from warning() to LOG(2)
-rw-r--r--src/mongo/db/query/cached_plan_runner.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/db/query/cached_plan_runner.cpp b/src/mongo/db/query/cached_plan_runner.cpp
index 17481c46c61..4ae8bf70cb1 100644
--- a/src/mongo/db/query/cached_plan_runner.cpp
+++ b/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);
}