]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: fix osd tell *
authorSage Weil <sage@newdream.net>
Mon, 1 Feb 2010 21:34:16 +0000 (13:34 -0800)
committerSage Weil <sage@newdream.net>
Mon, 1 Feb 2010 21:34:55 +0000 (13:34 -0800)
src/mon/OSDMonitor.cc

index f62b98bcdb2d767ee7b6de40c577dfd816c84c2f..187ff1b3aa4dd3773fd8a6f86ba266e70aaec518 100644 (file)
@@ -946,9 +946,11 @@ bool OSDMonitor::preprocess_command(MMonCommand *m)
       m->cmd.erase(m->cmd.begin());
       if (m->cmd[0] == "*") {
        m->cmd.erase(m->cmd.begin()); //and now we're done with the target num
-       for (int i = 0; i < osdmap.get_max_osd(); ++i) {
-         mon->send_command(osdmap.get_inst(i), m->cmd, paxos->get_version());
-       }
+       for (int i = 0; i < osdmap.get_max_osd(); ++i)
+         if (osdmap.is_up(i))
+           mon->send_command(osdmap.get_inst(i), m->cmd, paxos->get_version());
+       r = 0;
+       ss << "ok";
       } else {
        errno = 0;
        int who = strtol(m->cmd[0].c_str(), 0, 10);