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

Re: [Issue 1896] [libsvn_fs_fs] Fix 'Directory not empty' error when removing committed txn

From: Branko Čibej <brane_at_xbc.nu>
Date: 2004-05-27 17:50:43 CEST

rooneg@tigris.org wrote:

>Actually, since APR lacks a 'recursively delete directory' function, I'm not
>sure if this can be solved there. Working around the problem involves rewinding
>a directory every time we delete something in it. apr_file_remove and
>apr_dir_remove can't do that, because it has no knowledge of the enclosing
>directory. It's likely that we'll have to fix the bug in Subversion, rather
>than APR.
Another workaround is to do the complete readdir into memory first, then
iterate over that list. It uses more memory during a recursive delete,
but avoids having to rewinddir all the time. I'd really rather waste the
memory than issue an extra system call for every directory entry.

It would be nice if the recursive-delete function went into APR, though.

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu May 27 17:51:21 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.