mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-05 19:47:47 +01:00
fix(mount): return dropped error (#8623)
This commit is contained in:
1 parent
34fe289f32
commit
577a8459c9
1 file changed
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user