]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/journal: initialize current_journal_segment in find_replay_segments
authorSamuel Just <sjust@redhat.com>
Fri, 21 Aug 2020 21:14:56 +0000 (14:14 -0700)
committerSamuel Just <sjust@redhat.com>
Fri, 25 Sep 2020 19:41:11 +0000 (12:41 -0700)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/os/seastore/journal.cc

index fa1e1b2a9fb2f424f12eb3479519a5a21d1712f8..f535eb10265fbeca24a97b01673f7d72e811f955 100644 (file)
@@ -226,6 +226,8 @@ Journal::find_replay_segments_fut Journal::find_replay_segments()
              return lt.second.journal_segment_seq <
                rt.second.journal_segment_seq;
            });
+         current_journal_segment_seq =
+           segments.rbegin()->second.journal_segment_seq + 1;
 
          auto journal_tail = segments.rbegin()->second.journal_tail;
          segment_provider->update_journal_tail_committed(journal_tail);