On Windowsdeletes the target file before renaming. But if the source file does not exist, it means that a target file was deleted erroneously.
It particular, this is a problem forthat renames all files from . It assumes that the table was renamed successfully if at least some files existed and were renamed. On Windows it would delete all other target files though.
verify that the source file exists in— unnecessary overhead?
verify that the source file exists in
add a specialflag to that tells to verify whether the source exists before deleting; use this flag in