Remove JournalReader.getCurrentIndex() 05/111005/3
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 25 Mar 2024 07:34:32 +0000 (08:34 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 25 Mar 2024 07:45:56 +0000 (08:45 +0100)
commit54cfea6258d62114fea95acdc20514dbad079c2a
tree5fdd3ce905e78acc3b0a5452d252da91ea0ed3de
parent7f3eb922fce09a366143387ee71bf6f10b698473
Remove JournalReader.getCurrentIndex()

This method is used only in tests and has the weird 'or 0' return.
Refactor test asserts and remove this method.

Change-Id: If397f2398e75d08de867cf4c674a1dd14e8add30
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
atomix-storage/src/main/java/io/atomix/storage/journal/JournalReader.java
atomix-storage/src/main/java/io/atomix/storage/journal/SegmentedJournalReader.java
atomix-storage/src/test/java/io/atomix/storage/journal/AbstractJournalTest.java