seaweedfs/weed/storage
柏杰 0b0fb9b9e4
avoid data race read volume.IsEmpty (#4574)
* 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`
2023-06-14 14:39:58 -07:00
..
backend set df.File to nil after it is closed 2023-06-02 17:16:45 -07:00
erasure_coding collect ec shard from multiple locations 2023-04-17 22:56:21 -07:00
idx ADHOC: Volume fsck use a time cutoff param (#3626) 2022-09-10 15:29:17 -07:00
needle fix_read_tomb_needle_meta (#4263) 2023-03-02 08:26:55 -08:00
needle_map [volume.chek.disk] sync of deletions the fix (#3923) 2022-10-30 20:32:46 -07:00
super_block move proto package 2022-08-17 12:05:07 -07:00
types [volume.chek.disk] sync of deletions the fix (#3923) 2022-10-30 20:32:46 -07:00
volume_info Rclone storage backend (#4402) 2023-04-18 14:12:12 -07:00
disk_location.go avoid data race read volume.IsEmpty (#4574) 2023-06-14 14:39:58 -07:00
disk_location_ec.go collect ec shard from multiple locations 2023-04-17 22:56:21 -07:00
idx_binary_search_test.go Lazy loading (#3958) 2022-11-14 00:19:27 -08:00
needle_map.go Lazy loading (#3958) 2022-11-14 00:19:27 -08:00
needle_map_leveldb.go Lazy loading (#3958) 2022-11-14 00:19:27 -08:00
needle_map_memory.go Lazy loading (#3958) 2022-11-14 00:19:27 -08:00
needle_map_metric.go optimiz commitig compact (#3388) 2022-08-23 23:53:35 -07:00
needle_map_metric_test.go fix tests 2023-03-08 01:48:28 -08:00
needle_map_sorted_file.go avoid data race of TraverseBfs (#3856) 2022-10-16 11:30:41 -07:00
store.go avoid data race read volume.IsEmpty (#4574) 2023-06-14 14:39:58 -07:00
store_ec.go avoid overwriting variables 2023-04-22 11:49:59 -07:00
store_ec_delete.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
store_vacuum.go Fix no more writable volumes by delay judgment (#4548) 2023-06-05 10:17:21 -07:00
volume.go avoid data race read volume.IsEmpty (#4574) 2023-06-14 14:39:58 -07:00
volume_backup.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
volume_backup_test.go refactoring 2019-04-17 22:04:49 -07:00
volume_checking.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
volume_info.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
volume_info_test.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
volume_loading.go Lazy loading (#3958) 2022-11-14 00:19:27 -08:00
volume_read.go ADHOC: volume fsck using append at ns (#3906) 2022-10-24 22:09:38 -07:00
volume_read_all.go Include name/mime in ReadAllNeedles (#4005) 2022-11-23 15:59:38 -08:00
volume_read_test.go fix test 2023-03-14 22:05:16 -07:00
volume_super_block.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
volume_tier.go Rclone storage backend (#4402) 2023-04-18 14:12:12 -07:00
volume_vacuum.go vacuum metrics and force sync dst files (#3832) 2022-10-13 00:51:20 -07:00
volume_vacuum_test.go Lazy loading (#3958) 2022-11-14 00:19:27 -08:00
volume_write.go avoid data race read volume.IsEmpty (#4574) 2023-06-14 14:39:58 -07:00
volume_write_test.go avoid data race read volume.IsEmpty (#4574) 2023-06-14 14:39:58 -07:00