Browse Source

fix(mount): return dropped error (#8623)

pull/8626/head
Lars Lehtonen 5 days ago
committed by GitHub
parent
commit
577a8459c9
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      weed/mount/rdma_client.go

3
weed/mount/rdma_client.go

@ -226,6 +226,7 @@ func (c *RDMAMountClient) ReadNeedle(ctx context.Context, fileID string, offset,
var data []byte
var n int
if useTempFile && tempFilePath != "" {
// Zero-copy path: read from temp file (page cache)
glog.V(4).Infof("🔥 Using zero-copy temp file: %s", tempFilePath)
@ -237,7 +238,7 @@ func (c *RDMAMountClient) ReadNeedle(ctx context.Context, fileID string, offset,
}
buffer := make([]byte, bufferSize)
n, err := c.readFromTempFile(tempFilePath, buffer)
n, err = c.readFromTempFile(tempFilePath, buffer)
if err != nil {
glog.V(2).Infof("Zero-copy failed, falling back to HTTP body: %v", err)
// Fall back to reading HTTP body

Loading…
Cancel
Save