How to use the EImportFinish class
This article is about how to use the EImportFinish class. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
The EImportFinish class description:
Class EImportFinish: public LogEvent {whether the dirfrag bool success; import completed with dirfrag_t base; import is successful}
EImportFinish class methods:
EImportFinish::replay (mds)
| | _ _ if base in MDCache exists in ambiguous import |
| | _ if success==true |
| | _ _ execute the finish ambiguous import operation of MDCache in mds, that is: mds- > mdcache- > finish_ambiguous_import (base) |
| | _ if success==false |
| | _ _ get the CDir corresponding to base from MDCache, that is, mds- > mdcache- > get_dirfrag (base) |
| | _ _ get the ambiguous import bounds corresponding to base from MDCache, that is, mds- > mdcache- > get_ambiguous_import_bounds () |
| | _ _ adjust bounded subtree auth in MDCache, that is, mds- > mdcache- > adjust_bounded_subtree_auth () |
| | _ _ cancel ambiguous import, namely: mds- > mdcache- > cancel_ambiguous_import () |
| | _ _ delete the subtree of non auth from MDCache, that is: mds- > mdcache- > try_trim_non_auth_subtee () |
Thank you for reading! This is the end of this article on "how to use the EImportFinish class". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!