[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: w2k access is denied still here

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2004-02-20 19:21:30 CET

solo turn <soloturn99@yahoo.com> writes:

> this error is also still here for directories (in 0.37).

I find it odd that nobody else reports this bug. Why aren't other
Windows users complaining about this? Why is your system different?

Anyway, here's the retry code

#define WIN32_RETRY_LOOP(err, expr) \
  do \
  { \
    int retries = 0; \
    int sleep_count = 1000; \
                                                                           \
    for ( retries = 0; \
          APR_TO_OS_ERROR (err) == ERROR_ACCESS_DENIED && retries < 100; \
          ++retries ) \
    { \
      apr_sleep (sleep_count); \
      if (sleep_count < 128000) \
        sleep_count *= 2; \
      err = expr; \
    } \
  } while (0)

so that's 100 attempts to delete the directory, over a period of about
13 seconds, and all of them returned access is denied. You could try
changing the 100 or the 128000 and see if other numbers work better.

> $ svn up
> ...
> svn: In directory 'proj/src/com/asd'
> svn: Error processing command 'delete-entry' in 'proj/src/com/asd'
> svn: Can't remove 'proj/src/com/asd/ev/.svn': Access is denied.
>
> $ svn cleanup
>
> $ svn up

Huh? The cleanup worked? That doesn't look right. If I cause
svn_io_dir_remove to return an error I get

$ svn up wc
svn: In directory 'wc/foo'
svn: Error processing command 'delete-entry' in 'wc/foo'
svn: fake access is denied
$ svn st wc
! L wc
? wc/foo/bar
! L wc/foo
$ svn cleanup wc
svn: In directory 'wc/foo'
svn: Error processing command 'delete-entry' in 'wc/foo'
svn: Working copy 'wc/foo/bar' not locked
$ svn st wc
! L wc
? wc/foo/bar
! L wc/foo

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Feb 20 19:21:30 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.