]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix find_ino_dir completion
authorSage Weil <sage.weil@dreamhost.com>
Fri, 1 Apr 2011 18:35:09 +0000 (11:35 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Fri, 1 Apr 2011 18:35:09 +0000 (11:35 -0700)
Pass the path back in so that we can retraverse the path on retry.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/mds/MDCache.cc

index 31c6c475ce3c37d00ad1dd54aa2a2612dc218dcc..0bae0eb87582e5641b4098e80b7eb545188ca06a 100644 (file)
@@ -7040,7 +7040,8 @@ void MDCache::_find_ino_dir(inodeno_t ino, Context *fin, bufferlist& bl, int r)
 
   dout(10) << "_find_ino_dir traversing to path " << path << dendl;
 
-  Context *c = new C_MDS_FindInoDir(this, ino, fin);
+  C_MDS_FindInoDir *c = new C_MDS_FindInoDir(this, ino, fin);
+  c->bl = bl;
   r = path_traverse(NULL, NULL, c, path, &trace, NULL, MDS_TRAVERSE_DISCOVER);
   if (r > 0)
     return;