mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 11:07:31 +01:00
A replica that was writable again after the encode can rewrite a needle under a key the .ecx already lists. Checking only the key let cleanup delete that newer copy. Account for a live replica needle only when the .ecx holds it at the same size, or holds it deleted at the same offset, which is the encoded record deleted on the EC volume since. A needle resized, or deleted in the .ecx while the replica holds another record of it, keeps the replica.