]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: re-send requsets before composing the cap reconnect message 3792/head
authorYan, Zheng <zyan@redhat.com>
Wed, 25 Feb 2015 07:27:59 +0000 (15:27 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 26 Feb 2015 04:12:30 +0000 (12:12 +0800)
commit8ea5a811b3b32b99b65e6170976af3d42e6c9ba0
tree124e04e5a2abceec7791eca9391f85fa9e371e5d
parent1fa56d920c791cfd1d97c566536cfc63065a5c13
client: re-send requsets before composing the cap reconnect message

After commit 419800fe (client: re-send request when MDS enters reconnecting
stage), cephfs client can send both unsafe requests and normal requests when
MDS is in reconnecting stage. Normal requests can have embedded cap releases,
the client code encodes these embedded cap releases after composing the cap
reconnect message. This causes the client sliently drop some caps. The fix
is re-send requsets (which add embedded cap releases) before composing the
cap reconnect message

Fixes: #10912
Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/client/Client.cc
src/client/Client.h
src/mds/Server.cc