]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge branch 'wip-mon-scrub'
authorJoao Eduardo Luis <joao@suse.de>
Thu, 16 Jul 2015 15:46:32 +0000 (16:46 +0100)
committerJoao Eduardo Luis <joao@suse.de>
Thu, 16 Jul 2015 15:46:32 +0000 (16:46 +0100)
Reviewed-by: Sage Weil <sage@redhat.com>
1  2 
src/common/config_opts.h
src/mon/Monitor.cc
src/mon/Monitor.h

Simple merge
index 5fab64460c7d010a24fada89f9ef35f1fb9b1315,d31e0abd796f834eeb2d1b9dc691c07dc5dfe232..60caa424058b5e72e84a0f274cee8863dbce4ad0
@@@ -1859,8 -1866,8 +1869,9 @@@ void Monitor::win_election(epoch_t epoc
      timecheck_start();
      health_tick_start();
      do_health_to_clog_interval();
+     scrub_event_start();
    }
 +  collect_sys_info(&metadata[rank], g_ceph_context);
  }
  
  void Monitor::lose_election(epoch_t epoch, set<int> &q, int l, uint64_t features) 
@@@ -2733,10 -2715,10 +2744,10 @@@ void Monitor::handle_command(MMonComman
      return;
    }
  
 -  if (prefix == "scrub") {
 +  if (prefix == "scrub" || prefix == "mon scrub") {
      wait_for_paxos_write();
      if (is_leader()) {
-       int r = scrub();
+       int r = scrub_start();
        reply_command(m, r, "", rdata, 0);
      } else if (is_peon()) {
        forward_request_leader(m);
Simple merge