Synchronize SegmentedJournal.open() 14/104714/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 2 Mar 2023 11:37:29 +0000 (12:37 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 2 Mar 2023 11:39:40 +0000 (12:39 +0100)
commit2eb8e4e4449d2a9450c78f00428e6d2bf834bea9
treea4c32ab7fd658c3ad5f15e3d655c00ac963d5755
parenta0885a6c167d7da7ed60971c0736f2106074d649
Synchronize SegmentedJournal.open()

SpotBugs is pointing out a problem with synchronization to
currentSegment. This is a false positive, as we only call this method
from the constructor, but slap a synchronized keyword on it anyway.

JIRA: CONTROLLER-2071
Change-Id: Iaf3a13c4122a3321b615eb5629327494165c0bed
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
third-party/atomix/storage/src/main/java/io/atomix/storage/journal/SegmentedJournal.java