Remove obsolete flag in ShardStateAction$ShardRoutingEntry

This commit is contained in:
Jason Tedor 2015-12-03 14:08:35 -05:00
parent 928d53a884
commit b58d82f66c
1 changed files with 0 additions and 4 deletions

View File

@ -151,7 +151,6 @@ public class ShardStateAction extends AbstractComponent {
BatchResult.Builder<ShardRoutingEntry> batchResultBuilder = BatchResult.builder(); BatchResult.Builder<ShardRoutingEntry> batchResultBuilder = BatchResult.builder();
List<FailedRerouteAllocation.FailedShard> shardRoutingsToBeApplied = new ArrayList<>(tasks.size()); List<FailedRerouteAllocation.FailedShard> shardRoutingsToBeApplied = new ArrayList<>(tasks.size());
for (ShardRoutingEntry task : tasks) { for (ShardRoutingEntry task : tasks) {
task.processed = true;
shardRoutingsToBeApplied.add(new FailedRerouteAllocation.FailedShard(task.shardRouting, task.message, task.failure)); shardRoutingsToBeApplied.add(new FailedRerouteAllocation.FailedShard(task.shardRouting, task.message, task.failure));
} }
ClusterState maybeUpdatedState = currentState; ClusterState maybeUpdatedState = currentState;
@ -201,7 +200,6 @@ public class ShardStateAction extends AbstractComponent {
BatchResult.Builder<ShardRoutingEntry> builder = BatchResult.builder(); BatchResult.Builder<ShardRoutingEntry> builder = BatchResult.builder();
List<ShardRouting> shardRoutingsToBeApplied = new ArrayList<>(tasks.size()); List<ShardRouting> shardRoutingsToBeApplied = new ArrayList<>(tasks.size());
for (ShardRoutingEntry task : tasks) { for (ShardRoutingEntry task : tasks) {
task.processed = true;
shardRoutingsToBeApplied.add(task.shardRouting); shardRoutingsToBeApplied.add(task.shardRouting);
} }
ClusterState maybeUpdatedState = currentState; ClusterState maybeUpdatedState = currentState;
@ -250,8 +248,6 @@ public class ShardStateAction extends AbstractComponent {
String message; String message;
Throwable failure; Throwable failure;
volatile boolean processed; // state field, no need to serialize
public ShardRoutingEntry() { public ShardRoutingEntry() {
} }