EExport類說明:
class EExport:public LogEvent {
EMetaBlob metablob;
dirfrag_t bsae;
set<dirfrag_t> bounds;
};get
EExport類方法:
EExport::replay(mds)
|__從MDCache中獲得base的CDir,即:mds->mdcache->get_dirfrag()
|__遍歷bounds集合
|__從MDCache中獲得bounds集合中的CDir
|__將CDir插入到realbounds集合中
|__將realbounds集合加入到MDCache中,即:mds->mdcache->adjust_bounded_subtree_auth()
|__在MDCache中刪除掉全部non_auth的subtree,即:mds->mdcache->try_trim_non_auth_subtee()
class