]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: properly reconnect client caps after loading inodes 21953/head
authorYan, Zheng <zyan@redhat.com>
Wed, 2 May 2018 02:23:33 +0000 (10:23 +0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 11 May 2018 22:10:22 +0000 (15:10 -0700)
commitd039046cbe20963def64019fdc451e6fc60bb26a
treecb468f329ae649d41ad6f718ce08d0c477d7d3c3
parentf6e2e7ba0c16e4c680b75522df51eff43ea972b0
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>
(cherry picked from commit 48f60e7f274de9d76499816a528eff859bb161e3)
src/mds/MDCache.cc
src/mds/MDCache.h
src/mds/Server.cc