From 1e0a4276910aafec5f886da9f6a7e1d7dd3a1606 Mon Sep 17 00:00:00 2001 From: sageweil Date: Wed, 28 Feb 2007 23:15:51 +0000 Subject: [PATCH] der git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1140 29311d96-e01e-0410-9327-a35deaab8ce9 --- trunk/ceph/mds/MDS.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/trunk/ceph/mds/MDS.cc b/trunk/ceph/mds/MDS.cc index c7b31cc4de0dd..298c50bf5ac16 100644 --- a/trunk/ceph/mds/MDS.cc +++ b/trunk/ceph/mds/MDS.cc @@ -440,12 +440,6 @@ void MDS::handle_mds_map(MMDSMap *m) // decode and process mdsmap->decode(m->get_encoded()); - // tell objecter my incarnation - if (objecter->get_client_incarnation() < 0) { - assert(mdsmap->get_inc(whoami) > 0); - objecter->set_client_incarnation(mdsmap->get_inc(whoami)); - } - // see who i am whoami = mdsmap->get_inst_rank(messenger->get_myaddr()); if (oldwhoami != whoami) { @@ -466,6 +460,13 @@ void MDS::handle_mds_map(MMDSMap *m) } } + // tell objecter my incarnation + if (objecter->get_client_incarnation() < 0 && + mdsmap->have_inst(whoami)) { + assert(mdsmap->get_inc(whoami) > 0); + objecter->set_client_incarnation(mdsmap->get_inc(whoami)); + } + // update my state state = mdsmap->get_state(whoami); -- 2.39.5