]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: Monitor: allow updating scrub interval on demand 4587/head
authorJoao Eduardo Luis <joao@suse.de>
Tue, 26 May 2015 15:00:24 +0000 (16:00 +0100)
committerJoao Eduardo Luis <joao@suse.de>
Wed, 27 May 2015 22:48:45 +0000 (23:48 +0100)
commit29349090c2cf5d1a5d0c66c95835c10f7b6093d1
tree635b9c0efec316e293290ab74cbff4ec75d44196
parente77b3f4d3ee737a7534d4b0b34c9baf48f2e5991
mon: Monitor: allow updating scrub interval on demand

The interval, by default, is 3600*60 seconds (1 day).  When we start the
monitor we set the event to trigger a scrub after said time has passed.
If a user injects a different interval, we would have to wait a full day
until it took effect; this way it doesn't.

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
src/mon/Monitor.cc
src/mon/Monitor.h