From 9bed4e3a61ccf1c3fb2dcde9449669c5c6f134a4 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 1 Apr 2011 11:00:44 -0700 Subject: [PATCH] mds: fix discover_path If we have the base dirfrag, do not request it. Otherwise we can get a reply that contains only that (partial progress), and we will then fail to wake up our dentry waiter. This was broken with the rewrite in b58b8d098e4c. Signed-off-by: Sage Weil --- src/mds/MDCache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 6166c64b4bc4b..8ecf8e1bb9c6e 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -8101,7 +8101,7 @@ void MDCache::discover_path(CDir *base, d.frag = base->get_frag(); d.snap = snap; d.want_path = want_path; - d.want_base_dir = true; + d.want_base_dir = false; d.want_xlocked = want_xlocked; _send_discover(d); } -- 2.39.5