Skip to content

Commit

Permalink
Fix call to release refresh listeners on replica shards.
Browse files Browse the repository at this point in the history
Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>
  • Loading branch information
Rishikesh1159 committed Mar 9, 2023
1 parent 6bd0b3d commit d62aaca
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ public boolean addOrNotify(Translog.Location location, Consumer<Boolean> listene
return false;
}
}
// No free slot so force a refresh and call the listener in this thread
forceRefresh.run();
// No free slot so release existing refresh listeners and call the listener in this thread
releaseSeqNoRefreshListeners();
listener.accept(true);
return true;
}
Expand Down

0 comments on commit d62aaca

Please sign in to comment.