#4509 fixed temp files, waiting for index and ignoring move to same path