]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: avoid re-sending cap flushes twice during MDS recovers
authorYan, Zheng <zyan@redhat.com>
Tue, 12 Jan 2016 09:04:59 +0000 (17:04 +0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 13 Jan 2016 07:28:54 +0000 (15:28 +0800)
commitaf1a3b2afffc3a8f9f0c886c70425d57cf7d7012
treeeaf685942f933462372f111f8baabcd7501ce74d
parent20ac64f139263cf10db6dd1601c751031dfead31
client: avoid re-sending cap flushes twice during MDS recovers

During MDS recovers, client may send same cap flushes twice. The
first time is when MDS enters reconnect stage (only for flushing
caps which are also revoked), the second time is when MDS goes
active. If we send cap flushes when enters reconnect stage, we
should avoiding sending again.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/client/Client.cc
src/client/MetaSession.h