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

Re: Repository recovery

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2003-01-13 15:37:40 CET

Marc Haesen <marc.haesen@telindus.com> writes:

> When I do a 'svnadmin recover svnrepos' where svnrepos is the subdirectory
> containing the repository, I get the following error messages:
>
> Acquiring exclusive lock on repository db, and running recovery procedures.
> Please stand by...svn: The segment is already unlocked.
> svn: svn_repos_recover: failed to delete all locks on repository `svnrepos'.

Hmmm, looking at libsvn_repos/repos.c:974, it seems that we're
successfully opening up the repository lockfile, but that our call to
apr_file_unlock() is returning the "already unlocked" error. Thus we
never get to the code further down which calls
svn_fs_berkeley_recover().

I don't understand apr_file_unlock() very well... should we just trap
and ignore this error? What exactly does it mean? That the lockfile
is present, but unlockable?

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jan 13 15:40:53 2003

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