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:
Koen De Groote 2017-04-26 20:32:35 +02:00 committed by Ali Beyad
parent 416feeb7f9
commit 4c0eb35c22
1 changed files with 0 additions and 2 deletions

View File

@ -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()));
}
}