In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article will explain in detail what is the use of the LogEvent class in ceph. Xiaobian thinks it is quite practical, so share it with you as a reference. I hope you can gain something after reading this article.
LogEvent class description: (LogEvent class is the parent of all MDS Event classes)
class LogEvent {
EventType _type; Records the event type to which LogEvent belongs
uint64_t _start_off; Record the start position of LogEvent
utime_t stamp; Event stamp that records LogEvent
LogSegment *_segment; records a list of all LogSegments contained in a LogEvent
...
};
LogEvent class methods:
LogEvent::encode_with_header() serializes the LogEvent class object with header information as follows:
EVENT_NEW_ENCODING
1
_type
bufferlist
LogEvent::decode(bl) Parses serialized data streams to LogEvent class objects. Refer to encode_with_header() method
|__Parse type from bufferlist first
|__If type= EVENT_NEW_ENCODING indicates encode_with_header() function is used when encoding
|__Parses as encode_with_header()
|__decode_event()
|__if type!= EVENT_NEW_ENCODING
|__decode_event()
LogEvent::decode_event(bl, p, type)
|__Create different class objects according to the value of type ESubtreeMap/EExport/EImportStart/EImportFinish/EFragment/EResetJournal/ESession/EUpdate/ESlaveUpdate/EAssigned/ETableClient/ETableServer/ENoOp
|__Executes the decode() function of the created class object to parse bufferlist to class object, i.e.: le->decode(p)
About "what is the use of the LogEvent class in ceph" this article is shared here, I hope the above content can be of some help to everyone, so that you can learn more knowledge, if you think the article is good, please share it 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.