From 553aa5e6cc76950f557b368cf92fce9494c91d63 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Tue, 7 Mar 2023 13:23:05 -0500 Subject: [PATCH] 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 --- src/mds/events/EResetJournal.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mds/events/EResetJournal.h b/src/mds/events/EResetJournal.h index 73aa26571ea3a..bb50044ec16db 100644 --- a/src/mds/events/EResetJournal.h +++ b/src/mds/events/EResetJournal.h @@ -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; -- 2.39.5