From aa3ab0b5dafbaeb84ed1c01f2bd6997d64aabdd6 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sat, 10 Oct 2009 21:34:47 -0700 Subject: [PATCH] ceph: follow monmap changes in -w mode --- src/ceph.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/ceph.cc b/src/ceph.cc index 95df478cb63..8390c0ffa2d 100644 --- a/src/ceph.cc +++ b/src/ceph.cc @@ -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;