]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: allow adjustment of per-pool crash_replay_interval
authorSage Weil <sage@newdream.net>
Mon, 24 Oct 2011 18:27:20 +0000 (11:27 -0700)
committerSage Weil <sage@newdream.net>
Mon, 24 Oct 2011 18:27:20 +0000 (11:27 -0700)
Signed-off-by: Sage Weil <sage@newdream.net>
src/mon/OSDMonitor.cc

index 26fdddb68d93962ed9f6971d2a74dd9546b6d9e6..ab5a29c37856217a190f326cc6ab7d76d88e27c2 100644 (file)
@@ -1939,6 +1939,14 @@ bool OSDMonitor::prepare_command(MMonCommand *m)
              getline(ss, rs);
              paxos->wait_for_commit(new Monitor::C_Command(mon, m, 0, rs, paxos->get_version()));
              return true;
+           } else if (m->cmd[4] == "crash_replay_interval") {
+             if (pending_inc.new_pools.count(pool) == 0)
+               pending_inc.new_pools[pool] = *p;
+             pending_inc.new_pools[pool].crash_replay_interval = n;
+             ss << "set pool " << pool << " to crash_replay_interval to " << n;
+             getline(ss, rs);
+             paxos->wait_for_commit(new Monitor::C_Command(mon, m, 0, rs, paxos->get_version()));
+             return true;
            } else if (m->cmd[4] == "pg_num") {
              if (n <= p->get_pg_num()) {
                ss << "specified pg_num " << n << " <= current " << p->get_pg_num();