diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2025-08-06 10:09:26 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-06 10:09:26 -0700 |
| commit | 4af182f88001033440f5d397f26b1c6f5e7635e1 (patch) | |
| tree | 65e0de8aa22c2daa273fb514e772edeae0d7141e /weed/mount/filehandle.go | |
| parent | e446234e9c2512b01040fffcefc429a8d974808e (diff) | |
| download | seaweedfs-4af182f88001033440f5d397f26b1c6f5e7635e1.tar.xz seaweedfs-4af182f88001033440f5d397f26b1c6f5e7635e1.zip | |
Context cancellation during reading range reading large files (#7093)
* context cancellation during reading range reading large files
* address comments
* cancellation for fuse read
* fix cancellation
* pass in context for each function to avoid racing condition
* Update reader_at_test.go
* remove dead code
* Update weed/filer/reader_at.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update weed/filer/filechunk_group.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update weed/filer/filechunk_group.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* address comments
* Update weed/mount/weedfs_file_read.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update weed/mount/weedfs_file_lseek.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update weed/mount/weedfs_file_read.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update weed/filer/reader_at.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update weed/mount/weedfs_file_lseek.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* test cancellation
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Diffstat (limited to 'weed/mount/filehandle.go')
| -rw-r--r-- | weed/mount/filehandle.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/weed/mount/filehandle.go b/weed/mount/filehandle.go index f47d4a877..6cbc9745e 100644 --- a/weed/mount/filehandle.go +++ b/weed/mount/filehandle.go @@ -1,12 +1,13 @@ package mount import ( + "os" + "sync" + "github.com/seaweedfs/seaweedfs/weed/filer" "github.com/seaweedfs/seaweedfs/weed/glog" "github.com/seaweedfs/seaweedfs/weed/pb/filer_pb" "github.com/seaweedfs/seaweedfs/weed/util" - "os" - "sync" ) type FileHandleId uint64 |
