Skip to content

Commit

Permalink
RATIS-2240. updatePurgeIndex doesn't need to hold RaftLogBase.writeLo…
Browse files Browse the repository at this point in the history
…ck (#1214)
  • Loading branch information
SzyWilliam authored Jan 22, 2025
1 parent 8353a01 commit 345641f
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,8 @@ public boolean updateCommitIndex(long majorityIndex, long currentTerm, boolean i
}

protected void updatePurgeIndex(Long purged) {
try (AutoCloseableLock writeLock = writeLock()) {
if (purged != null) {
purgeIndex.updateToMax(purged, infoIndexChange);
}
if (purged != null) {
purgeIndex.updateToMax(purged, infoIndexChange);
}
}

Expand Down

0 comments on commit 345641f

Please sign in to comment.