mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-31 20:38:40 +00:00
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) {
|
PercolateRequest(PercolateRequest request, BytesReference docSource) {
|
||||||
super(request.indices());
|
super(request);
|
||||||
|
this.indices = request.indices();
|
||||||
this.documentType = request.documentType();
|
this.documentType = request.documentType();
|
||||||
this.routing = request.routing();
|
this.routing = request.routing();
|
||||||
this.preference = request.preference();
|
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) {
|
protected BroadcastOperationRequest(String[] indices) {
|
||||||
this.indices = indices;
|
this.indices = indices;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user