forked from TrueCloudLab/frostfs-node
[#431] services/object: Re-sign original read requests during forwarding
In previous implementation node's Object Get/Head/GetRange V2 service handlers created a new request for each RPC. Now original requests are re-signed according to API specification. Logical handler abstracts from this version-dependent logic through `RequestForwarder` callback. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
e6b30aed36
commit
36088949fc
6 changed files with 304 additions and 2 deletions
|
@ -41,6 +41,12 @@ type execCtx struct {
|
|||
head bool
|
||||
|
||||
curProcEpoch uint64
|
||||
|
||||
// true when the processing of the initial request
|
||||
// is turned to assembling stage. When false,
|
||||
// initial request can be forwarded during network
|
||||
// communication.
|
||||
assembling bool
|
||||
}
|
||||
|
||||
type execOption func(*execCtx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue