From: Yan, Zheng Date: Wed, 30 Nov 2016 14:18:24 +0000 (+0800) Subject: mds: fix indent in StrayManager::eval_remote_stray X-Git-Tag: v12.0.0~253^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ab49eaebc1d766dd0fecd9cbe8326c6fd73e3544;p=ceph.git mds: fix indent in StrayManager::eval_remote_stray Signed-off-by: Yan, Zheng --- diff --git a/src/mds/StrayManager.cc b/src/mds/StrayManager.cc index 6688f872785..27be91065d7 100644 --- a/src/mds/StrayManager.cc +++ b/src/mds/StrayManager.cc @@ -770,20 +770,20 @@ void StrayManager::eval_remote_stray(CDentry *stray_dn, CDentry *remote_dn) } } assert(remote_dn->last == CEPH_NOSNAP); - // NOTE: we repeat this check in _rename(), since our submission path is racey. - if (!remote_dn->is_projected()) { - if (remote_dn->is_auth() && remote_dn->dir->can_auth_pin()) { - reintegrate_stray(stray_dn, remote_dn); - } else if (!remote_dn->is_auth() && stray_dn->is_auth()) { - migrate_stray(stray_dn, remote_dn->authority().first); - } else { - dout(20) << __func__ << ": not reintegrating" << dendl; - } + // NOTE: we repeat this check in _rename(), since our submission path is racey. + if (!remote_dn->is_projected()) { + if (remote_dn->is_auth() && remote_dn->dir->can_auth_pin()) { + reintegrate_stray(stray_dn, remote_dn); + } else if (!remote_dn->is_auth() && stray_dn->is_auth()) { + migrate_stray(stray_dn, remote_dn->authority().first); } else { - // don't do anything if the remote parent is projected, or we may - // break user-visible semantics! - dout(20) << __func__ << ": not reintegrating (projected)" << dendl; + dout(20) << __func__ << ": not reintegrating" << dendl; } + } else { + // don't do anything if the remote parent is projected, or we may + // break user-visible semantics! + dout(20) << __func__ << ": not reintegrating (projected)" << dendl; + } } void StrayManager::reintegrate_stray(CDentry *straydn, CDentry *rdn)