Removal of dead code from SnapshotsService (#24347)
This code removes a few lines of dead code from SnapshotsService. Looks like a forgotten remnant of a past implementation.
This commit is contained in:
parent
416feeb7f9
commit
4c0eb35c22
|
@ -913,13 +913,11 @@ public class SnapshotsService extends AbstractLifecycleComponent implements Clus
|
|||
try {
|
||||
final Repository repository = repositoriesService.repository(snapshot.getRepository());
|
||||
logger.trace("[{}] finalizing snapshot in repository, state: [{}], failure[{}]", snapshot, entry.state(), failure);
|
||||
ArrayList<ShardSearchFailure> failures = new ArrayList<>();
|
||||
ArrayList<SnapshotShardFailure> shardFailures = new ArrayList<>();
|
||||
for (ObjectObjectCursor<ShardId, ShardSnapshotStatus> shardStatus : entry.shards()) {
|
||||
ShardId shardId = shardStatus.key;
|
||||
ShardSnapshotStatus status = shardStatus.value;
|
||||
if (status.state().failed()) {
|
||||
failures.add(new ShardSearchFailure(status.reason(), new SearchShardTarget(status.nodeId(), shardId)));
|
||||
shardFailures.add(new SnapshotShardFailure(status.nodeId(), shardId, status.reason()));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue