]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix discover_path
authorSage Weil <sage.weil@dreamhost.com>
Fri, 1 Apr 2011 18:00:44 +0000 (11:00 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Fri, 1 Apr 2011 18:24:14 +0000 (11:24 -0700)
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 <sage.weil@dreamhost.com>
src/mds/MDCache.cc

index 6166c64b4bc4be9b9f5dc7f4d2128df2d05c8a6b..8ecf8e1bb9c6ebd0f49222d121a354c64d76e4e4 100644 (file)
@@ -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);
   }