From: Yan, Zheng Date: Thu, 4 Apr 2013 03:06:09 +0000 (+0800) Subject: mds: don't stop at export bounds when journaling dir context X-Git-Tag: v0.65~197^2~29 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d7b999be1b24ffd8b83370fcd9f0bd32829b8b35;p=ceph.git mds: don't stop at export bounds when journaling dir context We only journal the finish of exporting subtree, so we shouldn't consider export bounds as subtree root. Signed-off-by: Yan, Zheng --- diff --git a/src/mds/journal.cc b/src/mds/journal.cc index 11ce5acf479d..559eb63a04c3 100644 --- a/src/mds/journal.cc +++ b/src/mds/journal.cc @@ -406,7 +406,7 @@ void EMetaBlob::add_dir_context(CDir *dir, int mode) if (mode == TO_AUTH_SUBTREE_ROOT) { // subtree root? - if (dir->is_subtree_root()) { + if (dir->is_subtree_root() && !dir->state_test(CDir::STATE_EXPORTBOUND)) { if (dir->is_auth() && !dir->is_ambiguous_auth()) { // it's an auth subtree, we don't need maybe (if any), and we're done. dout(20) << "EMetaBlob::add_dir_context(" << dir << ") reached unambig auth subtree, don't need " << maybe