Skip to content

Commit

Permalink
Free repair slot before handling the result
Browse files Browse the repository at this point in the history
  • Loading branch information
Radovan Zvoncek committed Jul 15, 2015
1 parent f3e1e89 commit 1b94e82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/spotify/reaper/service/RepairRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ private void repairSegment(final int rangeIndex, final long segmentId, RingRange
Futures.addCallback(segmentResult, new FutureCallback<Object>() {
@Override
public void onSuccess(Object ignored) {
handleResult(segmentId);
currentlyRunningSegments.set(rangeIndex, -1);
handleResult(segmentId);
}
@Override
public void onFailure(Throwable t) {
Expand Down

0 comments on commit 1b94e82

Please sign in to comment.