Browse Source
ec: fall back to data dir when ecx file not found in idx dir
ec: fall back to data dir when ecx file not found in idx dir
When -dir.idx is configured after EC encoding, .ecx/.ecj files remain in the data directory. Port Go PR #8541 logic: - EcVolume::new() falls back to data dir for .ecx/.ecj, tracks actual location in ecx_actual_dir field - load_existing_volumes() checks both idx and data dirs for .ecx - remove_ec_volume_files() cleans up .ecx/.ecj from both directories - delete_ec_shards() removes .ecx/.ecj from both idx and data dirs - find_ec_dir() checks idx dir first, falls back to data dir - destroy() removes .ecx/.ecj from all possible locationsrust-volume-server
3 changed files with 79 additions and 15 deletions
-
18seaweed-volume/src/storage/disk_location.rs
-
46seaweed-volume/src/storage/erasure_coding/ec_volume.rs
-
30seaweed-volume/src/storage/store.rs
Write
Preview
Loading…
Cancel
Save
Reference in new issue