Files
seaweedFS/weed/server
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
..
2019-03-03 10:17:44 -08:00
2024-08-01 13:00:54 -07:00
2025-09-18 14:46:53 -07:00