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

Re: Subversion's use of Berkeley DB [#11511]

From: Justin Erenkrantz <justin_at_erenkrantz.com>
Date: 2004-12-09 23:07:02 CET

--On Thursday, December 9, 2004 10:58 PM +0100 "Branko ?ibej"
<brane@xbc.nu> wrote:

> This is all irrelevant because we can't rely on Apache here. It's quite
> reasonable to use all three RA methods to access the same repository, so
> any such serialisation mechanism must go into libsvn_fs_base.

No, it's not. We should add an RA method that indicates that the process
is being initialized and advise SVN to perform recovery. libsvn_fs_base
can then decide through other means what to do with it (i.e. via a new
named shared memory segment that does refcounting). For example, if
another process has the repository open, then it can skip the check.
However, for mod_dav_svn, the time to invoke the check would be at the
post_config hook. This also allows immediate feedback whether the
repository is in a 'good' state before the rest of httpd is initialized.
If it fails the check, then httpd will never come up: which, IMHO, is a
good thing. -- justin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Dec 10 03:28:05 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.