From 3d8731209ad39197feedb4710e146173f2958c5d Mon Sep 17 00:00:00 2001 From: Michal Jarzabek Date: Sat, 23 Jan 2016 12:08:57 +0000 Subject: mon/PGMonitor.cc:warning if pg not scrubbed Added 2 flags for displaying a warning when pg is unscrubbed: mon report not scrubbed mon report not deep scrubbed Each of them specifies the amount of time past the mon_scrub_interval after which an unscrubbed pg is displayed: ceph -s -for number of unscrubbed pgs ceph health -for number of unscrubbed pgs ceph health detail -for detailed list of unscrubbed pgs Both flags are set to 0 by default, which means they are turned off. Fixes: #13142 Signed-off-by: Michal Jarzabek --- src/mon/MonmapMonitor.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mon/MonmapMonitor.cc') diff --git a/src/mon/MonmapMonitor.cc b/src/mon/MonmapMonitor.cc index 900c2912771..6323b85174d 100644 --- a/src/mon/MonmapMonitor.cc +++ b/src/mon/MonmapMonitor.cc @@ -528,7 +528,8 @@ void MonmapMonitor::tick() } void MonmapMonitor::get_health(list >& summary, - list > *detail) const + list > *detail, + CephContext *cct) const { int max = mon->monmap->size(); int actual = mon->get_quorum().size(); -- cgit v1.2.3