diff options
author | Benety Goh <benety@mongodb.com> | 2014-02-27 10:59:20 -0500 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2014-02-27 10:59:20 -0500 |
commit | d9c5f2c2c0872519c68ec9200df9ff5ee7e7b071 (patch) | |
tree | 4bdbef3b98ae19296cfd2f20c806e228ad9c0df1 /src | |
parent | 69314bca2ca7a6831f4aa657eba231fac2196901 (diff) | |
download | mongo-d9c5f2c2c0872519c68ec9200df9ff5ee7e7b071.tar.gz |
SERVER-12711 downgrade plan stats error logging from warning() to LOG(2)
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/query/cached_plan_runner.cpp | 12 |
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); } |