]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: make 'ceph osd rm ...' wipe out all state bits, not just EXISTS
authorSage Weil <sage@inktank.com>
Mon, 23 Jul 2012 17:47:10 +0000 (10:47 -0700)
committerSage Weil <sage@inktank.com>
Thu, 26 Jul 2012 22:04:02 +0000 (15:04 -0700)
This ensures that when a new osd reclaims that id it behaves as if it were
really new.

Backport: argonaut
Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/OSDMonitor.cc

index f3a784cbda9ed764b6492da11126e186d01dc0ba..3f8f135cce5c8024f250ac3dc63499bde01c09fc 100644 (file)
@@ -2137,7 +2137,7 @@ bool OSDMonitor::prepare_command(MMonCommand *m)
        } else if (osdmap.is_up(osd)) {
          ss << "osd." << osd << " is still up";
        } else {
-         pending_inc.new_state[osd] = CEPH_OSD_EXISTS;
+         pending_inc.new_state[osd] = osdmap.get_state(osd);
          if (any)
            ss << ", osd." << osd;
          else