add chunk etag when downloading from remote storage

fix https://github.com/seaweedfs/seaweedfs/issues/3987
This commit is contained in:
chrislu
2022-12-10 21:49:07 -08:00
parent 659f28b855
commit e1ca6308cb
4 changed files with 434 additions and 417 deletions

View File

@@ -51,6 +51,8 @@ func (vs *VolumeServer) FetchAndWriteNeedle(ctx context.Context, req *volume_ser
if err == nil {
err = fmt.Errorf("local write needle %d size %d: %v", req.NeedleId, req.Size, err)
}
} else {
resp.ETag = n.Etag()
}
}()
if len(req.Replicas) > 0 {