From 072e80ed1c564e76786b4c77c913cf1cca549281 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 8 Jun 2011 13:27:34 -0700 Subject: [PATCH] mds: use CDIR_AUTH_UNDEF where possible Signed-off-by: Sage Weil --- src/mds/journal.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mds/journal.cc b/src/mds/journal.cc index 1f69a07f14f..951caa87d53 100644 --- a/src/mds/journal.cc +++ b/src/mds/journal.cc @@ -677,7 +677,7 @@ void EMetaBlob::replay(MDS *mds, LogSegment *logseg) } dir = renamed_diri->get_or_open_dirfrag(mds->mdcache, *p); dout(10) << " creating new rename import bound " << *dir << dendl; - mds->mdcache->adjust_subtree_auth(dir, pair(CDIR_AUTH_UNKNOWN, CDIR_AUTH_UNKNOWN), false); + mds->mdcache->adjust_subtree_auth(dir, CDIR_AUTH_UNDEF, false); } } @@ -1222,7 +1222,7 @@ void EExport::replay(MDS *mds) } // adjust auth away - mds->mdcache->adjust_bounded_subtree_auth(dir, realbounds, pair(CDIR_AUTH_UNKNOWN, CDIR_AUTH_UNKNOWN)); + mds->mdcache->adjust_bounded_subtree_auth(dir, realbounds, CDIR_AUTH_UNDEF); mds->mdcache->try_trim_non_auth_subtree(dir); } @@ -1280,7 +1280,7 @@ void EImportFinish::replay(MDS *mds) CDir *dir = mds->mdcache->get_dirfrag(base); vector bounds; mds->mdcache->get_ambiguous_import_bounds(base, bounds); - mds->mdcache->adjust_bounded_subtree_auth(dir, bounds, pair(CDIR_AUTH_UNKNOWN, CDIR_AUTH_UNKNOWN)); + mds->mdcache->adjust_bounded_subtree_auth(dir, bounds, CDIR_AUTH_UNDEF); mds->mdcache->cancel_ambiguous_import(dir); mds->mdcache->try_trim_non_auth_subtree(dir); }