]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: clear pg delta after some period 295/head
authorSage Weil <sage@inktank.com>
Fri, 17 May 2013 00:58:48 +0000 (17:58 -0700)
committerSage Weil <sage@inktank.com>
Fri, 17 May 2013 00:58:48 +0000 (17:58 -0700)
commit65072f2e432c212f88dc5d5b9e8034decb019103
tree9f120c319dae626cec34697b1c9eaf6ba6a2ed09
parent9b9d322c20e4d3cfa5d40023cd28c020068178f1
mon: clear pg delta after some period

If we have not pg_map updates, the delta doesn't update, and can get stuck
with the velocity right before activity stopped.  This is confusing, and
can cause incorrect health warnings about in-progress recovery.

To fix this, zero the delta if there is no activity for
'mon delta reset interval' seconds.

Fixes: #5077
Signed-off-by: Sage Weil <sage@inktank.com>
src/common/config_opts.h
src/mon/PGMap.cc
src/mon/PGMap.h
src/mon/PGMonitor.cc