]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: remove false is_auth() check for remote_dn
authorXiubo Li <xiubli@redhat.com>
Thu, 16 Mar 2023 02:52:01 +0000 (10:52 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 11 Apr 2023 01:45:28 +0000 (09:45 +0800)
In the else scope the remote_dn must be non-auth.

https://tracker.ceph.com/issues/56695
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 400dfef0a7ca56087a08e0b6d7abe440b33b4feb)

src/mds/StrayManager.cc

index 61e4f23fd7a3b42fe163e08cecfb401ca7db734b..ab8f0ddb49e260c599dbe508d1aebb61afe145ec 100644 (file)
@@ -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;