From: Xiubo Li Date: Thu, 16 Mar 2023 02:52:01 +0000 (+0800) Subject: mds: remove false is_auth() check for remote_dn X-Git-Tag: v19.0.0~1405^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=400dfef0a7ca56087a08e0b6d7abe440b33b4feb;p=ceph.git mds: remove false is_auth() check for remote_dn In the else scope the remote_dn must be non-auth. https://tracker.ceph.com/issues/56695 Signed-off-by: Xiubo Li --- diff --git a/src/mds/StrayManager.cc b/src/mds/StrayManager.cc index 61e4f23fd7a..ab8f0ddb49e 100644 --- a/src/mds/StrayManager.cc +++ b/src/mds/StrayManager.cc @@ -653,7 +653,7 @@ void StrayManager::_eval_stray_remote(CDentry *stray_dn, CDentry *remote_dn) dout(20) << __func__ << ": not reintegrating (can't authpin remote parent)" << dendl; } - } else if (!remote_dn->is_auth() && stray_dn->is_auth()) { + } else if (stray_dn->is_auth()) { migrate_stray(stray_dn, remote_dn->authority().first); } else { dout(20) << __func__ << ": not reintegrating" << dendl;