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)
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;