Internal: make sure that internally generated percolate request re-uses the original headers and request context
Closes #7767
This commit is contained in:
parent
b75d1d885a
commit
dd2ef8e014
|
@ -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();
|
||||
|
|
|
@ -41,6 +41,10 @@ public abstract class BroadcastOperationRequest<T extends BroadcastOperationRequ
|
|||
|
||||
}
|
||||
|
||||
protected BroadcastOperationRequest(ActionRequest originalRequest) {
|
||||
super(originalRequest);
|
||||
}
|
||||
|
||||
protected BroadcastOperationRequest(String[] indices) {
|
||||
this.indices = indices;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue