Get the App
SLTechnology News&Howtos  ›  Servers  › 

What is the use of Cache Expire in MDCache

Shulou Source: shulou.com Published: 2022-05-31 18:12:23 10月04日 Update

This article mainly introduces what is the use of Cache Expire in MDCache. It is very detailed and has a certain reference value. Interested friends must finish reading it!

The handle_cache_expire () function in MDCache handles MCacheExpire class messages. The MDS process that sends MCacheExpire messages has experienced several inode, dir, and dentry timeouts in cache, so the MDS process that sends MCacheExpire messages needs to synchronize these messages to other MDS processes. The MDS process that receives the MCacheExpire class message first iterates through the realms array in the MCacheExpire class message, and saves the MCacheExpire class message to the delayed_expire array if the export_state of the MDS process is in EXPORTING/LOGGINGFINISH/WARNING/NOTIFYING. Iterate through the inodes array in the MDCacheExpire messages and call the inode_remove_replica () function to delete the inode information from the MDCache, then traverse the dirs array in the MDCacheExpire messages and call the dir- > remove_replica () function to delete the dir information from the MDCache, and finally iterate through the dentries array and call the dentry_remove_replica () function to delete the dentry information from the MDCache.

The above is all the content of this article "what is the use of Cache Expire in MDCache?" Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: News array process function information content article value interest guy partner situation more knowledge industry information information channel channel CSL reference Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Docker MySQL Shulou Tech Info Huawei