From: Patrick Donnelly Date: Tue, 7 Mar 2023 18:23:05 +0000 (-0500) Subject: mds: change EResetJournal to major segment boundary X-Git-Tag: v19.0.0~760^2~14 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=553aa5e6cc76950f557b368cf92fce9494c91d63;p=ceph.git 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 --- diff --git a/src/mds/events/EResetJournal.h b/src/mds/events/EResetJournal.h index 73aa26571ea3..bb50044ec16d 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;