]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: trigger to flush the mdlog in handle_find_ino() 46424/head
authorXiubo Li <xiubli@redhat.com>
Tue, 19 Apr 2022 06:21:49 +0000 (14:21 +0800)
committerXiubo Li <xiubli@redhat.com>
Mon, 30 May 2022 07:01:10 +0000 (15:01 +0800)
commita43e4180c337bd905c77c31544c994ac3ae123c1
tree09dac2f9be0529768f7fdcc54f4f72c3c01649e8
parent1f45e6517088b3be712297cfc0a9e112459a997d
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>
(cherry picked from commit 5d6dd5d1acf94eade4a2c0f48777c95473d454ae)
src/mds/MDCache.cc