forked from TrueCloudLab/frostfs-sdk-go
Add new event to read data from server
Signed-off-by: Alex Vanin <a.vanin@yadro.com>
This commit is contained in:
parent
9e55056842
commit
7974eb9857
1 changed files with 1 additions and 0 deletions
|
@ -822,6 +822,7 @@ func (c *clientWrapper) objectPutServerCut(ctx context.Context, prm PrmObjectPut
|
|||
span.AddEvent("reading single data chunk")
|
||||
n, err = prm.payload.Read(buf)
|
||||
if n > 0 {
|
||||
span.AddEvent("single data chunk has been read")
|
||||
start = time.Now()
|
||||
successWrite := wObj.WritePayloadChunk(ctx, buf[:n])
|
||||
c.incRequests(time.Since(start), methodObjectPut)
|
||||
|
|
Loading…
Add table
Reference in a new issue