]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds: trigger to flush the mdlog in handle_find_ino()
authorXiubo Li <xiubli@redhat.com>
Tue, 19 Apr 2022 06:21:49 +0000 (14:21 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 26 Apr 2022 01:36:18 +0000 (09:36 +0800)
commit5d6dd5d1acf94eade4a2c0f48777c95473d454ae
tree7fbf298f4b1926556a47c1e12b9d886981474343
parentf6d1cb6e306e693317da980151895de43dc1c720
mds: trigger to flush the mdlog in handle_find_ino()

If the the CInode was just created by using openc in current
auth MDS, but the client just sends a getattr request to another
replica MDS. Then here it will make a path of '#INODE-NUMBER'
only because the CInode hasn't been linked yet, and the replica
MDS will keep retrying until the auth MDS flushes the mdlog and
the C_MDS_openc_finish and link_primary_inode are called at most
5 seconds later.

Fixes: https://tracker.ceph.com/issues/55240
Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/mds/MDCache.cc