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

Re: svn commit: r1146528 - /subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c

From: Julian Foad <julian.foad_at_wandisco.com>
Date: Thu, 14 Jul 2011 12:00:09 +0100

On Thu, 2011-07-14 at 04:10 +0300, Daniel Shahaf wrote:
> Greg Stein wrote on Wed, Jul 13, 2011 at 20:54:56 -0400:
> > On Wed, Jul 13, 2011 at 20:32, <danielsh_at_apache.org> wrote:
> > > Author: danielsh
> > > Date: Thu Jul 14 00:32:05 2011
> > > New Revision: 1146528
> > >
> > > URL: http://svn.apache.org/viewvc?rev=1146528&view=rev
> > > Log:
> > > * subversion/libsvn_fs_fs/fs_fs.c
> > > (write_config): Document that 'svnadmin verify' will access (and thus create)
> > > rep-cache.db regardless of whether rep-sharing (of new reps) is enabled
> > > in fsfs.conf.
> >
> > If rep-sharing is turned off, then it seems wrong to spontaneously
> > create a .db that isn't begin used.
>
> It's harmless (it isn't being used).

Harmless in functional terms only.

> We could make the code pass readwrite (rather than rwcreate) for that
> one caller, and then mask the error when the DB doesn't exist.

+1.

> (We do
> want to verify the DB if it's exists but fsfs.conf says "Don't use it",
> since fsfs.conf may get changed.)

+1.

> I'm not sure that non-creating an
> unused db justifies this additional code.

I'm with Greg - it would be good for the users.

- Julian
Received on 2011-07-14 13:00:54 CEST

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