Re: Add warning to svnadmin recover, WAS: FW: repository too slow suddenly
From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2003-08-15 04:23:15 CEST
Garrett Rooney wrote:
OK, so it's more complex, but not very complex. So really, wouldn't you say that it is possible and desirable for svnadmin to lock it while it's being recovered and for other accesses to lock it while they are in progress, as long as a "recover --break-lock" option is available with a suitable warning message?
My ideas added in pseudo-code:
mark benedetto king wrote (in thread "repository too slow suddenly"):
Is there a single place for this, or once in each of the three RA layers, or many places?
...
/* associate some sort of program identification with the lock */
>
locked_by = [determine RA layer type, program name, process id.,
This is to help the administrator find out what is or was aceesing it, when he believed that nothing was doing so.
error("The repository appears to be in use by "(locked_by)".
> }
/* associate some sort of program identification with the lock */
>
And for "recover --break-lock":
Delete the lock file and then lock it as for "recover",
Is it possible to use the existing lock mechanism that all regular access to the DB must already respect (handled internally by Berkeley DB libs, I assume)? It seems a shame to add our own on top unless it is essential to do it that way.
- Julian
---------------------------------------------------------------------
|
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.