]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: change EResetJournal to major segment boundary
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 7 Mar 2023 18:23:05 +0000 (13:23 -0500)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 1 Aug 2023 15:16:01 +0000 (11:16 -0400)
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>
src/mds/events/EResetJournal.h

index 73aa26571ea3a968f1a85e3750aa98fde3ed7155..bb50044ec16db68beb609f51b0ea3446d3224407 100644 (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;