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:
Patrick Donnelly 2023-03-07 13:23:05 -05:00
parent c325553476
commit 553aa5e6cc
No known key found for this signature in database
GPG Key ID: FA47FD0B0367D313

View File

@ -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;