Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the ESlaveUpdate class

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly shows you "how to use the ESlaveUpdate class", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to use the ESlaveUpdate class" this article.

The ESlaveUpdate class description:

Class ESlaveUpdate: public LogEvent {EMetaBlob commit; bufferlist rollback; string type; metareqid_t reqid; mds_rank_t master; _ _ u8 op; _ _ u8 origop;}

Methods of the ESlaveUpdate class:

ESlaveUpdate::replay (mds)

| | _ _ classify according to the op value |

| | _ op==ESlaveUpdate::OP_PREPARE |

| | _ _ create a new MDSlaveUpdate class object |

| | _ _ execute EMetaBlob::replay () operation, that is, commit.replay () |

| | _ _ add uncommitted slave update information to MDCache, that is, mds- > mdcache- > add_uncommitted_slave_update () |

| | _ op==ESlaveUpdate::OP_COMMIT |

| | _ _ get uncommitted slave update information from MDCache, that is, mds- > mdcache- > get_uncommitted_slave_update () |

| | _ _ perform finish uncommitted slave update operation in MDCache, that is, mds- > mdcache- > finish_uncommitted_slave_update () |

| | _ op==ESlaveUpdate::OP_ROLLBACK |

| | _ _ execute EMetaBlob::replay () operation, that is, commit.replay () |

| | _ _ get uncommitted slave update information from MDCache, that is, mds- > mdcache- > get_uncommitted_slave_update () |

| | _ _ perform finish uncommitted slave update operation in MDCache, that is, mds- > mdcache- > finish_uncommitted_slave_update () |

The above is all the content of this article "how to use ESlaveUpdate Class". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow 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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report