aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/volume_write.go
AgeCommit message (Collapse)AuthorFilesLines
2025-10-16Fix uncleanable orphans issue with `volume.fsck -forcePurging` (#7332)Jaehoon Kim1-1/+1
- Modified `needle_map_memory.go` to include needles with size=0 during needle map loading - Updated `volume_write.go` to handle size=0 needles in delete operations
2025-07-16convert error fromating to %w everywhere (#6995)Chris Lu1-1/+1
2025-06-01revert part of d8c574a5ef1a811f9a0d447097d9edfcc0c1d84c (#6829)Chris Lu1-1/+1
2025-05-15correctly report volume with input/output error to master (#6790)dongxufeng1-1/+2
* correctly capture io error and report to master * code fix * check io error by error.Is --------- Co-authored-by: dongxu_feng <dongxu_feng@intsig.net>
2025-05-14fix fsync logicchrislu1-1/+1
2024-12-05adjust error messagechrislu1-1/+3
2024-10-18fix(volume): to avoid duplicate write a same needle (#6138)dsd1-1/+15
fix WriteNeedleBlob to avoid duplicate write a same needle Co-authored-by: 邓书东 <shudong_deng@hhnb2024010108.intsig.com> Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
2024-01-11fix write volume over size MaxPossibleVolumeSize (#5190)skycope1-13/+0
Co-authored-by: Yang Wang <yangwang@weride.ai>
2023-07-07avoid nil needle mapchrislu1-0/+4
fix https://github.com/seaweedfs/seaweedfs/issues/4640
2023-06-14avoid data race read volume.IsEmpty (#4574)柏杰1-2/+18
* avoid data race read volume.IsEmpty - avoid phantom read isEmpty for onlyEmpty - use `v.DataBackend.GetStat()` in v.dataFileAccessLock scope * add Destroy(onlyEmpty: true) test * add Destroy(onlyEmpty: false) test * remove unused `IsEmpty()` * change literal `8` to `SuperBlockSize`
2022-10-23fix mergechrislu1-1/+0
2022-10-23ensure monotonic n.AppendAtNs in each place (#3880)Konstantin Lebedev1-12/+4
https://github.com/seaweedfs/seaweedfs/issues/3852 Co-authored-by: Chris Lu <chrislusf@users.noreply.github.com>
2022-10-23fix size variablechrislu1-1/+1
2022-10-23volume server: remote tier volumes only soft delete in local indexchrislu1-7/+11
fix https://github.com/seaweedfs/seaweedfs/issues/3889
2022-10-13ensure monotonic n.AppendAtNschrislu1-1/+8
fix https://github.com/seaweedfs/seaweedfs/issues/3852
2022-09-16refactor(storage): readability improvements (#3703)Ryan Russell1-1/+1
Signed-off-by: Ryan Russell <git@ryanrussell.org> Signed-off-by: Ryan Russell <git@ryanrussell.org>
2022-07-29move to https://github.com/seaweedfs/seaweedfschrislu1-4/+4
2022-04-26use two flags: v.isCompacting and v.isCommitCompactingchrislu1-1/+1
2021-08-13Only when tailing volume, the zero-ed cookie should skip checking.Chris Lu1-8/+10
This only happens when checkCookie == false and fsync == false.
2021-08-13tail volume: fix zero cookie problem from batch deletionChris Lu1-1/+4
2021-03-22shell: add volume.check.disk to fix inconsistency for replicated volumesChris Lu1-0/+26
fix https://github.com/chrislusf/seaweedfs/issues/1923
2021-03-21refactor, split into 2 filesChris Lu1-0/+301