<div dir="ltr"><br><div>Attached is a patch which simply adds ERROR_SHARING_VIOLATION to the set of errors (currently including only ERROR_ACCESS_DENIED) to the errors that cause a rename (MoveFile) on Windows to retry.  The condition was observed when two renames to the same target file name were happening simultaneously.  Since, in the case observed, both source files were sharing read, write, and delete and the MoveFileEx calls were using the "replaceIfExists" flag, you would think that Windows would allow them both to succeed since either one being the winner is ok.  Arguably a bug (at least I would argue it's a bug) in Windows.</div>
<div><br></div><div>Eric</div><div><br></div></div>