]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds: properly reconnect client caps after loading inodes
authorYan, Zheng <zyan@redhat.com>
Wed, 2 May 2018 02:23:33 +0000 (10:23 +0800)
committerYan, Zheng <zyan@redhat.com>
Wed, 2 May 2018 02:48:49 +0000 (10:48 +0800)
commit48f60e7f274de9d76499816a528eff859bb161e3
tree8b3325cac1d62d5c2eb62d584828cfe8a7085ac1
parent49365c70dca0082fcde3e468c85f58adc2731b65
mds: properly reconnect client caps after loading inodes

Commit e43c02d6 "mds: filter out blacklisted clients when importing
caps" makes MDCache::process_imported_caps() ignore clients that are
not in MDCache::rejoin_imported_session_map. The map does not contain
clients from which mds has received reconnect messages. This causes
some client caps (corresponding inodes were not in cache when mds was
in reconnect state) to get dropped.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/MDCache.cc
src/mds/MDCache.h
src/mds/Server.cc