WIP: Process EC container for Get/GetRange/Head concurrently #1237
2 changed files with 3 additions and 3 deletions
|
@ -110,7 +110,7 @@ func (r *request) processRepNodes(ctx context.Context, traverser *placement.Trav
|
||||||
|
|
||||||
client.NodeInfoFromNetmapElement(&info, addrs[i])
|
client.NodeInfoFromNetmapElement(&info, addrs[i])
|
||||||
|
|
||||||
if r.processNode(ctx, info) {
|
if r.processRepNode(ctx, info) {
|
||||||
r.log.Debug(logs.GetCompletingTheOperation)
|
r.log.Debug(logs.GetCompletingTheOperation)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,8 +15,8 @@ import (
|
||||||
|
|
||||||
var errECObjectInRepContainer = errors.New("found erasure-coded object in REP container")
|
var errECObjectInRepContainer = errors.New("found erasure-coded object in REP container")
|
||||||
|
|
||||||
func (r *request) processNode(ctx context.Context, info client.NodeInfo) bool {
|
func (r *request) processRepNode(ctx context.Context, info client.NodeInfo) bool {
|
||||||
ctx, span := tracing.StartSpanFromContext(ctx, "getService.processNode")
|
ctx, span := tracing.StartSpanFromContext(ctx, "getService.processRepNode")
|
||||||
defer span.End()
|
defer span.End()
|
||||||
|
|
||||||
r.log.Debug(logs.ProcessingNode, zap.String("node_key", hex.EncodeToString(info.PublicKey())))
|
r.log.Debug(logs.ProcessingNode, zap.String("node_key", hex.EncodeToString(info.PublicKey())))
|
||||||
|
|
Loading…
Reference in a new issue