Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tolerate file deletion race on CurrentShadowWALIndex
Commit e0493f9 exposed a race between CurrentShadowWALIndex and copyToShadowWAL where the temp file could exist during os.ReadDir but not when actually checking the file size. Said race is quite uncommon and should be mostly harmless as the monitor will retry soon anyway but not having locking around these operations might cause other undesired effects. This commit fixes the immediate issue of failing for the wrong reason.
- Loading branch information