Use getCompactableIndex() to unmask firstIndex 53/111653/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 7 May 2024 21:02:42 +0000 (23:02 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 7 May 2024 21:33:38 +0000 (23:33 +0200)
commit9f1702771cc777690b18ecffd0e7059dcf574475
treea32ec49842c3b5805bfefea071be5c5e6d41c4a7
parent2cdb3460a95fae6dd556ca9e0e20c042ec63ed22
Use getCompactableIndex() to unmask firstIndex

We have duplicated code which can easily use the result of
getCompactableIndex() and work on top of that.

JIRA: CONTROLLER-2100
Change-Id: Ib580853424d445d82c448a86d82a706f4bba50d2
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
atomix-storage/src/main/java/io/atomix/storage/journal/SegmentedByteBufJournal.java