subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Shahaf <...@daniel.shahaf.name>
Subject Re: Unexpected files in folder repository\db\...
Date Mon, 05 Dec 2011 22:17:44 GMT
Ryan Schmidt wrote on Mon, Dec 05, 2011 at 14:33:18 -0600:
> On Dec 5, 2011, at 08:32, Martin Bischoff wrote:
> 
> > -> is it expected that such transaction and locks files and folders remain in
the db folder or is this an indication that there is a problem?
> 
> 
> Dead transactions can occur:
> 
> http://svnbook.red-bean.com/en/1.7/svn.reposadmin.maint.html#svn.reposadmin.maint.diskspace.deadtxns
> 
> Dead locks, not sure how that happened but you can probably use
> rmlocks to get rid of them.

Assuming FSFS.

db/locks/ contains a directory per *path component* in the locked file
(eg, three entries for /trunk/README).  Likely, once created, those dirs
are only emptied, not removed (see subversion/libsvn_fs_fs/lock.c).
Therefore, an 'svn lock; svn unlock;' cycle would leave a few dirs
behind.

It's safe to remove empty dirs whilst no 'svn lock' operating is
running, or while holding an appropriate write lock.

> 

Mime
View raw message