]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: set want_base_dir to false for MDCache::discover_ino()
authorYan, Zheng <zheng.z.yan@intel.com>
Sat, 8 Dec 2012 05:59:38 +0000 (13:59 +0800)
committerSage Weil <sage@inktank.com>
Mon, 24 Dec 2012 04:01:11 +0000 (20:01 -0800)
commite6b8f0a65946b0281cf15770ada46a72a04c7836
tree3107bfc6285343c627f07e4e2aa8f55bd6f9986d
parentb7e698a52bf7838f8e37842074c510a6561f165b
mds: set want_base_dir to false for MDCache::discover_ino()

When frozen inode is encountered, MDCache::handle_discover() sends
reply immediately if the reply message is not empty. When handling
"discover ino" requests, the reply message always contains the base
directory fragment. But requestor already has the base directory
fragment, the only effect of the reply message is wake the requestor
and make it send same "discover ino" request again. So the requestor
keeps sending "discover ino" requests but can't make any progress.

The fix is set want_base_dir to false for MDCache::discover_ino().
After set want_base_dir to false, also need update the code that
handles "discover ino" error.

This patch also remove unused error handling code for flag_error_dn

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
src/mds/MDCache.cc