Message ID | 1363531902-24909-35-git-send-email-zheng.z.yan@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Reviewed-by: Greg Farnum <greg@inktank.com> On Sun, Mar 17, 2013 at 7:51 AM, Yan, Zheng <zheng.z.yan@intel.com> wrote: > From: "Yan, Zheng" <zheng.z.yan@intel.com> > > Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com> > --- > src/mds/MDCache.cc | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc > index e9a79cd..30687ec 100644 > --- a/src/mds/MDCache.cc > +++ b/src/mds/MDCache.cc > @@ -7101,9 +7101,9 @@ int MDCache::path_traverse(MDRequest *mdr, Message *req, Context *fin, // wh > if (!curdir) { > if (cur->is_auth()) { > // parent dir frozen_dir? > - if (cur->is_frozen_dir()) { > - dout(7) << "traverse: " << *cur->get_parent_dir() << " is frozen_dir, waiting" << dendl; > - cur->get_parent_dn()->get_dir()->add_waiter(CDir::WAIT_UNFREEZE, _get_waiter(mdr, req, fin)); > + if (cur->is_frozen()) { > + dout(7) << "traverse: " << *cur << " is frozen, waiting" << dendl; > + cur->add_waiter(CDir::WAIT_UNFREEZE, _get_waiter(mdr, req, fin)); > return 1; > } > curdir = cur->get_or_open_dirfrag(this, fg); > -- > 1.7.11.7 > -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index e9a79cd..30687ec 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -7101,9 +7101,9 @@ int MDCache::path_traverse(MDRequest *mdr, Message *req, Context *fin, // wh if (!curdir) { if (cur->is_auth()) { // parent dir frozen_dir? - if (cur->is_frozen_dir()) { - dout(7) << "traverse: " << *cur->get_parent_dir() << " is frozen_dir, waiting" << dendl; - cur->get_parent_dn()->get_dir()->add_waiter(CDir::WAIT_UNFREEZE, _get_waiter(mdr, req, fin)); + if (cur->is_frozen()) { + dout(7) << "traverse: " << *cur << " is frozen, waiting" << dendl; + cur->add_waiter(CDir::WAIT_UNFREEZE, _get_waiter(mdr, req, fin)); return 1; } curdir = cur->get_or_open_dirfrag(this, fg);