Skip to content

Commit

Permalink
Merge pull request elastic#13218 from brwe/resolve-index-default-impl
Browse files Browse the repository at this point in the history
add default impl for resolveIndex()
  • Loading branch information
brwe committed Aug 31, 2015
2 parents a492179 + 73785e0 commit a7e2400
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,6 @@ public void onFailure(Throwable e) {
}
}

@Override
protected boolean resolveIndex() {
return true;
}

@Override
protected void resolveRequest(final ClusterState state, final InternalRequest request, final ActionListener<DeleteResponse> listener) {
request.request().routing(state.metaData().resolveIndexRouting(request.request().routing(), request.request().index()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,6 @@ public void onFailure(Throwable e) {
}
}

@Override
protected boolean resolveIndex() {
return true;
}

@Override
protected void resolveRequest(ClusterState state, InternalRequest request, ActionListener<IndexResponse> indexResponseActionListener) {
MetaData metaData = clusterService.state().metaData();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ protected ClusterBlockException checkRequestBlock(ClusterState state, InternalRe
return state.blocks().indexBlockedException(ClusterBlockLevel.WRITE, request.concreteIndex());
}

protected abstract boolean resolveIndex();
protected boolean resolveIndex() {
return true;
}

/**
* Resolves the request, by default doing nothing. Can be subclassed to do
Expand Down

0 comments on commit a7e2400

Please sign in to comment.