Files
seaweedFS/weed
Chris Lu 4dcd33bbc8 fix: handle missing idx file for empty volumes during copy (#7777) (#7778)
When copying/evacuating empty volumes, the .idx file may not exist on disk
(this is allowed by checkIdxFile for volumes with only super block in .dat).

This fix:
1. Uses os.IsNotExist() instead of err == os.ErrNotExist for proper
   wrapped error checking in CopyFile
2. Treats missing source file as success when StopOffset == 0 (empty file)
3. Allows checkCopyFiles to pass when idx file doesn't exist but
   IdxFileSize == 0 (empty volume)

Fixes volumeServer.evacuate and volume.fix.replication for empty volumes.
2025-12-15 18:43:40 -08:00
..
2025-10-13 18:05:17 -07:00
2024-06-25 09:18:11 -07:00
2024-02-14 08:26:38 -08:00
2025-12-15 01:06:55 -08:00
2025-03-17 23:13:27 -07:00