summaryrefslogtreecommitdiffstats
path: root/src/mon/MonmapMonitor.cc
diff options
context:
space:
mode:
authorMichal Jarzabek <stiopa@gmail.com>2016-01-23 13:08:57 +0100
committerMichal Jarzabek <stiopa@gmail.com>2016-01-23 17:22:26 +0100
commit3d8731209ad39197feedb4710e146173f2958c5d (patch)
tree2356a526851c7bfbc8dcc938d289a270a52a6303 /src/mon/MonmapMonitor.cc
parentMerge pull request #7310 from trociny/fix-rbd-replay-eof (diff)
downloadceph-3d8731209ad39197feedb4710e146173f2958c5d.tar.xz
ceph-3d8731209ad39197feedb4710e146173f2958c5d.zip
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 <stiopa@gmail.com>
Diffstat (limited to 'src/mon/MonmapMonitor.cc')
-rw-r--r--src/mon/MonmapMonitor.cc3
1 files changed, 2 insertions, 1 deletions
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<pair<health_status_t, string> >& summary,
- list<pair<health_status_t, string> > *detail) const
+ list<pair<health_status_t, string> > *detail,
+ CephContext *cct) const
{
int max = mon->monmap->size();
int actual = mon->get_quorum().size();