mirror of
https://github.com/ceph/ceph
synced 2024-12-28 22:43:29 +00:00
mds: change EResetJournal to major segment boundary
When the MDS journal is wiped, EResetJournal is a major segment boundary as it necessarily begins the journal. Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
parent
c325553476
commit
553aa5e6cc
@ -25,6 +25,10 @@ class EResetJournal : public LogEvent, public SegmentBoundary {
|
||||
EResetJournal() : LogEvent(EVENT_RESETJOURNAL) { }
|
||||
~EResetJournal() override {}
|
||||
|
||||
bool is_major_segment_boundary() const override {
|
||||
return true;
|
||||
}
|
||||
|
||||
void encode(bufferlist& bl, uint64_t features) const override;
|
||||
void decode(bufferlist::const_iterator& bl) override;
|
||||
void dump(Formatter *f) const override;
|
||||
|
Loading…
Reference in New Issue
Block a user