In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article is about how to use the ESubtreeMap 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 ESubtreeMap class description:
Class ESubtreeMap: public LogEvent {EMetaBlob metablob; map subtrees; set ambiguous_subtrees; uint64_t expire_pos; uint64_t event_seq;}:
ESubtreeMap class methods:
ESubtreeMap::replay (mds)
| | _ _ if expire _ pos is valid and is larger than the expire pos of journaler in the current MDLog |
| | _ _ sets the journaler expire posvalue of MDLog, that is, mds- > mdlog- > journaler- > set_expire_pos (expire_pos) |
| | _ _ if MDCache is subtrees |
| | _ _ traverses subtrees |
| | _ _ get the CDir corresponding to subtree_root from MDCache |
| | _ _ check whether the CDir corresponding to subtree root is subtree |
| | _ _ traverses all dirfrags under subtree_root |
| | _ _ perform get_force_dirfrag operation in MDCache, that is, mds- > mdcache- > get_force_dirfrag () |
| | _ _ get the subtree bound of subtree_root in MDCache, that is: mds- > mdcache- > get_subtree_bound () |
| | _ _ traverses all dirfrags under subtree_root |
| | _ _ remove dirfrags from subtree bound array |
| | _ _ if the array contains subtree_root _ subtrees |
| | _ _ check whether the MDCache contains subtree_root in the ambiguous, that is, mds- > mdcache- > have_ambiguous_import () |
| | _ _ if subtree_root _ subtrees array does not contain subtree_root |
| | _ _ check whether the MDCache contains subtree_root in the ambiguous, that is, mds- > mdcache- > have_ambiguous_import () |
| | _ _ get subtrees from MDCache, that is: mds- > mdcache- > list_subtrees () |
| | _ _ traverses the subtrees in MDCache |
| | _ _ check whether the subtrees of the MDCache is in the subtrees collection of the ESubtreeMap class |
| | _ _ perform EMetaBlob::replay operation |
| | _ _ traverse the subtrees array |
| | _ _ get the CDir corresponding to subtree_root from MDCache |
| | _ _ check whether subtree_root is in the ambiguous_subtrees array |
| | _ _ add ambiguous information to MDCache, that is, mds- > mdcache- > add_ambiguous_import () |
| | _ _ adjust subtree auth in MDCache, that is, mds- > mdcache- > adjust_bounded_subtree_auth () |
| | _ _ subtree_root is not in the ambiguous_subtrees array |
| | _ _ adjust subtree auth in MDCache, that is, mds- > mdcache- > adjust_bounded_subtree_auth () |
| | _ _ execute recalc auth bits in MDCache, namely: mds- > mdcache- > recalc_auth_bits () |
Thank you for reading! This is the end of this article on "how to use the ESubtreeMap 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!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.