Internal: make sure that internally generated percolate request re-uses the original headers and request context

Closes #7767
This commit is contained in:
javanna 2014-09-17 12:06:59 +02:00 committed by Luca Cavanna
parent b75d1d885a
commit dd2ef8e014
2 changed files with 6 additions and 1 deletions

View File

@ -69,7 +69,8 @@ public class PercolateRequest extends BroadcastOperationRequest<PercolateRequest
}
PercolateRequest(PercolateRequest request, BytesReference docSource) {
super(request.indices());
super(request);
this.indices = request.indices();
this.documentType = request.documentType();
this.routing = request.routing();
this.preference = request.preference();

View File

@ -41,6 +41,10 @@ public abstract class BroadcastOperationRequest<T extends BroadcastOperationRequ
}
protected BroadcastOperationRequest(ActionRequest originalRequest) {
super(originalRequest);
}
protected BroadcastOperationRequest(String[] indices) {
this.indices = indices;
}