]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix MDCache::adjust_bounded_subtree_auth()
authorYan, Zheng <zheng.z.yan@intel.com>
Tue, 12 Mar 2013 11:41:13 +0000 (19:41 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Sun, 31 Mar 2013 08:57:14 +0000 (16:57 +0800)
commitfbcc64dffd44270f757b494fce605376f15b3647
tree59c13c3f3e6d3e97e6d4f3fb0833d4d17276d738
parent573a4ae1a2a2dff392580d7473d6bcd57f72b525
mds: fix MDCache::adjust_bounded_subtree_auth()

There are cases that need both create new bound and swallow intervening
subtree. For example: A MDS exports subtree A with bound B and imports
subtree B with bound C at the same time. The MDS crashes, exporting
subtree A fails, but importing subtree B succeed. During recovery, the
MDS may create new bound C and swallow subtree B.

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