Skip to content

Commit 067046a

Browse files
committed
fix: readAt() occasional hang in concurrent reads
1 parent fb0652c commit 067046a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ func (f *File) readAt(b []byte, off int64) (int, error) {
11741174
ID: id,
11751175
Handle: f.handle,
11761176
Offset: uint64(offset),
1177-
Len: uint32(chunkSize),
1177+
Len: uint32(len(rb)),
11781178
})
11791179

11801180
select {

0 commit comments

Comments
 (0)