Skip to content

Commit

Permalink
Internal: make sure that internally generated percolate request re-us…
Browse files Browse the repository at this point in the history
…es the original headers and request context

Closes #7767
  • Loading branch information
javanna committed Sep 17, 2014
1 parent 4e87c58 commit 7047a97
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ public class PercolateRequest extends BroadcastOperationRequest<PercolateRequest
public PercolateRequest() {
}

public PercolateRequest(PercolateRequest request, BytesReference docSource) {
super(request.indices());
PercolateRequest(PercolateRequest request, BytesReference docSource) {
super(request);
this.indices = request.indices();
this.documentType = request.documentType();
this.routing = request.routing();
this.preference = request.preference();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ protected BroadcastOperationRequest() {

}

protected BroadcastOperationRequest(ActionRequest originalRequest) {
super(originalRequest);
}

protected BroadcastOperationRequest(String[] indices) {
this.indices = indices;
}
Expand Down

0 comments on commit 7047a97

Please sign in to comment.