Browse Source
Fix concurrent map access in EC shards info (#8222)
Fix concurrent map access in EC shards info (#8222)
* fix concurrent map access in EC shards info #8219 * refactor: simplify Disk.ToDiskInfo to use ecShards snapshot and avoid redundant locking * refactor: improve GetEcShards with pre-allocation and deferpull/8225/head
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 91 additions and 2 deletions
-
44weed/storage/erasure_coding/ec_shards_info_test.go
-
5weed/topology/disk_ec.go
-
44weed/topology/race_condition_stress_test.go
Write
Preview
Loading…
Cancel
Save
Reference in new issue