Skip to content

Commit

Permalink
Remove unused transport action from TransportFreezeIndexAction (elast…
Browse files Browse the repository at this point in the history
…ic#47992)

Removes unnecessary TransportCloseIndexAction from 
TransportFreezeIndexAction
  • Loading branch information
tlrx authored Oct 14, 2019
1 parent 46a5164 commit efc033c
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import org.elasticsearch.action.ActionListener;
import org.elasticsearch.action.admin.indices.close.CloseIndexClusterStateUpdateRequest;
import org.elasticsearch.action.admin.indices.close.CloseIndexResponse;
import org.elasticsearch.action.admin.indices.close.TransportCloseIndexAction;
import org.elasticsearch.action.admin.indices.open.OpenIndexClusterStateUpdateRequest;
import org.elasticsearch.action.support.ActionFilters;
import org.elasticsearch.action.support.DestructiveOperations;
Expand Down Expand Up @@ -54,20 +53,17 @@ public final class TransportFreezeIndexAction extends

private final DestructiveOperations destructiveOperations;
private final MetaDataIndexStateService indexStateService;
private final TransportCloseIndexAction transportCloseIndexAction;

@Inject
public TransportFreezeIndexAction(MetaDataIndexStateService indexStateService, TransportService transportService,
ClusterService clusterService,
ThreadPool threadPool, ActionFilters actionFilters,
IndexNameExpressionResolver indexNameExpressionResolver,
DestructiveOperations destructiveOperations,
TransportCloseIndexAction transportCloseIndexAction) {
DestructiveOperations destructiveOperations) {
super(FreezeIndexAction.NAME, transportService, clusterService, threadPool, actionFilters, FreezeRequest::new,
indexNameExpressionResolver);
this.destructiveOperations = destructiveOperations;
this.indexStateService = indexStateService;
this.transportCloseIndexAction = transportCloseIndexAction;
}
@Override
protected String executor() {
Expand Down

0 comments on commit efc033c

Please sign in to comment.