From: John Spray Date: Tue, 8 Aug 2017 18:53:11 +0000 (+0100) Subject: osd: downgrade (ok) PG scrub messages to debug X-Git-Tag: v12.1.3~18 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=78b86ff7ebb711dd0b4228da373e27b2526e39f4;p=ceph.git osd: downgrade (ok) PG scrub messages to debug Otherwise someone watching the log at INFO level gets pelted with potentially millions of log messages while the system is scrubbing. Fixes: http://tracker.ceph.com/issues/20947 Signed-off-by: John Spray (cherry picked from commit 0443fdb0221bbcd33c8d1278fdd3959e710fcacb) --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 92ae8f8307bc..a0d9fd659796 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -4497,7 +4497,7 @@ void PG::chunky_scrub(ThreadPool::TPHandle &handle) const char *mode = (repair ? "repair": (deep_scrub ? "deep-scrub" : "scrub")); stringstream oss; oss << info.pgid.pgid << " " << mode << " starts" << std::endl; - osd->clog->info(oss); + osd->clog->debug(oss); } scrubber.seed = -1; @@ -4936,7 +4936,7 @@ void PG::scrub_finish() if (total_errors) osd->clog->error(oss); else - osd->clog->info(oss); + osd->clog->debug(oss); } // finish up