From fbb5a205db9a2313a0d6714f662e8a54bd67e165 Mon Sep 17 00:00:00 2001 From: Vinay Krishna Pudyodu Date: Mon, 18 Nov 2024 11:30:31 -0800 Subject: [PATCH] removed unnecessary variable Signed-off-by: Vinay Krishna Pudyodu --- .../replication/TransportSegmentReplicationStatsAction.java | 1 - 1 file changed, 1 deletion(-) diff --git a/server/src/main/java/org/opensearch/action/admin/indices/replication/TransportSegmentReplicationStatsAction.java b/server/src/main/java/org/opensearch/action/admin/indices/replication/TransportSegmentReplicationStatsAction.java index eb2ab7eeba8ff..b15d83de4b3b7 100644 --- a/server/src/main/java/org/opensearch/action/admin/indices/replication/TransportSegmentReplicationStatsAction.java +++ b/server/src/main/java/org/opensearch/action/admin/indices/replication/TransportSegmentReplicationStatsAction.java @@ -175,7 +175,6 @@ protected SegmentReplicationShardStatsResponse shardOperation(SegmentReplication } if (shardRouting.primary()) { - SegmentReplicationPerGroupStats pgs = pressureService.getStatsForShard(indexShard); return new SegmentReplicationShardStatsResponse(pressureService.getStatsForShard(indexShard)); } else if (shardRouting.isSearchOnly()) { SegmentReplicationShardStats segmentReplicationShardStats = calcualteSegmentReplicationShardStats(