]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: avoid sending duplicated discovers during recovery 1182/head
authorYan, Zheng <zheng.z.yan@intel.com>
Fri, 10 Jan 2014 01:55:50 +0000 (09:55 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Tue, 4 Feb 2014 13:43:42 +0000 (21:43 +0800)
commit68e6dada2c25b36554b2d5533910c9f4ca640f8d
tree0264913baed62f6d8a01890de5d1b0fbf92212bf
parent0d6095ce652d3bb9209424f997e81a696f0878a1
mds: avoid sending duplicated discovers during recovery

If MDS just entered the rejoin state, it should not kick discovers
because the discovers were just sent. Similarly, if MDS just entered
the clientreplay state, it should not call MDS::handle_mds_recovery()
because MDS::recovery_done() has already recovered the table server.

Also make MDCache::handle_mds_recovery() not wake the discover waiters
up. Because the MDCache::kick_discovers re-sends the discovers, their
replies will wake the discover waiter up.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
src/mds/MDCache.cc
src/mds/MDS.cc