You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by "D.J. Heap" <dj...@dhiprovo.com> on 2003/05/27 16:30:30 UTC

[PATCH] Windows rename failures

Log:

Windows rename (MoveFileEx) operations will sometimes fail with
'Access Denied' when it should not -- it appears to be a race/bug
in MoveFileEx or NTFS somewhere.  A short sleep and retrying the
operation finishes correctly.  See the dev archives for more
information (search for MoveFileEx and/or Access Denied).

* subversion/libsvn_subr/io.c
  (svn_io_file_rename): Add a short sleep and retry if the rename
  fails in Windows with 'Access Denied.'


**********************************************************************
This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity to
whom they are addressed. If you have received this email
in error please notify the system manager.

This footnote also confirms that this email message has been
swept by MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


Re: [PATCH] Windows rename failures

Posted by "D.J. Heap" <dj...@shadyvale.net>.
Sorry about that.  Sleep shortened to 1ns, also.

Log:

Windows rename (MoveFileEx) operations will sometimes fail with
'Access Denied' when it should not -- it appears to be a race/bug
in MoveFileEx or NTFS somewhere. A short sleep and retrying the
operation finishes correctly. See the dev archives for more
information (search for MoveFileEx and/or Access Denied).

* subversion/libsvn_subr/io.c
   (svn_io_file_rename): Add a short sleep and retry if the rename
   fails in Windows with 'Access Denied.'

Re: [PATCH] Windows rename failures

Posted by Branko Čibej <br...@xbc.nu>.
Branko Čibej wrote:

>D.J. Heap wrote:
>
>  
>
>>**********************************************************************
>>This email and any files transmitted with it are confidential
>>and intended solely for the use of the individual or entity to
>>whom they are addressed. If you have received this email
>>in error please notify the system manager.
>>
>>This footnote also confirms that this email message has been
>>swept by MIMEsweeper for the presence of computer viruses.
>>
>>www.mimesweeper.com
>>**********************************************************************
>> 
>>
>>    
>>
>According to this, we're probably not allowed to use this patch, nor
>even look at it.
>  
>

Oh, and I think a millisecond here is a looooong time. 1/10 of that at
most, I'd guess. Or maybe 10000 clock cycles, or something.

No no no, I didn't look at the patch, what makes you think so? :-)

-- 
Brane Čibej   <br...@xbc.nu>   http://www.xbc.nu/brane/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [PATCH] Windows rename failures

Posted by Branko Čibej <br...@xbc.nu>.
D.J. Heap wrote:

>**********************************************************************
>This email and any files transmitted with it are confidential
>and intended solely for the use of the individual or entity to
>whom they are addressed. If you have received this email
>in error please notify the system manager.
>
>This footnote also confirms that this email message has been
>swept by MIMEsweeper for the presence of computer viruses.
>
>www.mimesweeper.com
>**********************************************************************
>  
>
According to this, we're probably not allowed to use this patch, nor
even look at it.

-- 
Brane Čibej   <br...@xbc.nu>   http://www.xbc.nu/brane/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org