In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
Xiaobian to share with you what is the use of dentry link in MDCache, I believe most people still do not know how, so share this article for everyone's reference, I hope you have a lot of harvest after reading this article, let's go to understand it together!
The send_dentry_link() function in MDCache is responsible for sending dentry links to other MDS processes. The sender traverses the replica_map array to obtain the CDentry::linkage_t class object corresponding to CDentry, and then creates an MDentryLink class message. If the CDentry::linkage_t class object is a primary link, the replicate_inode() function is invoked to write the primary link information into the MDentryLink class message. If the CDentry::linkage_t class object is not a primary link, the remote inode number and remote entry type information are written into the MDentryLink class message. Finally, the MDentryLink message is sent to the destination MDS process.
MDCache handle_dentry_link() function handles MDentryLink messages. MDS processes that send MDentryLink messages send dentry link information to other MDS processes as MDentryLink messages by calling the send_dentry_link() function. MDS process receiving MDentryLink message first obtains CDir class object corresponding to dirfrag in message locally, and then obtains CDentry class object corresponding to dirfrag through CDir class object. If primary link is specified in the class message, call add_replica_inode() function to complete primary link operation; if primary link is not specified in the class message, call dir->link_remote_inode() function to complete remote link.
The above is "MDCache dentry link what to use" all the content of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!
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.