Skip to content

Commit

Permalink
Mark clearShard method as synchronized
Browse files Browse the repository at this point in the history
Signed-off-by: Aman Khare <[email protected]>
  • Loading branch information
Aman Khare committed Apr 10, 2024
1 parent 65229fc commit 08763ed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public abstract class AsyncShardBatchFetch<T extends BaseNodeResponse, V> extend
*
* @param shardId shardId to be removed from the batch.
*/
public void clearShard(ShardId shardId) {
public synchronized void clearShard(ShardId shardId) {
this.shardAttributesMap.remove(shardId);
this.cache.deleteShard(shardId);
}
Expand Down

0 comments on commit 08763ed

Please sign in to comment.