Skip to content

Commit

Permalink
Remove unnecessary condition check.
Browse files Browse the repository at this point in the history
Signed-off-by: Rishikesh1159 <rishireddy1159@gmail.com>
  • Loading branch information
Rishikesh1159 committed Dec 9, 2022
1 parent 3d08064 commit 3471fcc
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,6 @@ public void handleRecoveryDone(ReplicationState state, ShardRouting shardRouting
// For Segment Replication enabled indices, we want replica shards to start a replication event to fetch latest segments before it
// is marked as Started.
if (indexShard != null
&& indexShard.indexSettings().isSegRepEnabled()
&& shardRouting.primary() == false
&& shardRouting.state() == ShardRoutingState.INITIALIZING
&& indexShard.state() == IndexShardState.POST_RECOVERY) {
Expand Down

0 comments on commit 3471fcc

Please sign in to comment.