]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph: follow monmap changes in -w mode
authorSage Weil <sage@newdream.net>
Sun, 11 Oct 2009 04:34:47 +0000 (21:34 -0700)
committerSage Weil <sage@newdream.net>
Sun, 11 Oct 2009 04:34:47 +0000 (21:34 -0700)
src/ceph.cc

index 95df478cb639037807b9b9fc9bb10961cdee8154..8390c0ffa2df1733daf49453d195136c0fc70f48 100644 (file)
@@ -199,6 +199,16 @@ void handle_notify(MMonObserveNotify *notify)
       }
       break;
     }
+
+  case PAXOS_MONMAP:
+    {
+      mc.monmap.decode(notify->bl);
+      dout(0) << "   mon " << mc.monmap << dendl;
+    }
+    break;
+
+  default:
+    dout(0) << "  ignoring unknown machine id " << notify->machine_id << dendl;
   }
 
   map_ver[notify->machine_id] = notify->ver;