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

Re: svn commit: r1296604 - in /subversion/trunk/subversion/libsvn_fs_fs: caching.c fs.h fs_fs.c

From: Daniel Shahaf <danielsh_at_elego.de>
Date: Mon, 5 Mar 2012 14:57:04 +0200

Philip Martin wrote on Mon, Mar 05, 2012 at 12:23:40 +0000:
> Daniel Shahaf <danielsh_at_elego.de> writes:
>
> > You're right, I misread the code: I mistakenly thought line 2867 will
> > always re-read the revprop-gen file from disk. How about:
> >
> > Index: subversion/libsvn_fs_fs/fs_fs.c
> > ===================================================================
> > --- subversion/libsvn_fs_fs/fs_fs.c (revision 1297002)
> > +++ subversion/libsvn_fs_fs/fs_fs.c (working copy)
> > @@ -583,8 +583,9 @@ with_some_lock_file(svn_fs_t *fs,
> > fs_fs_data_t *ffd = fs->fsap_data;
> > if (ffd->format >= SVN_FS_FS__MIN_PACKED_FORMAT)
> > SVN_ERR(update_min_unpacked_rev(fs, pool));
> > SVN_ERR(get_youngest(&ffd->youngest_rev_cache, fs->path,
> > pool));
> > + SVN_ERR(read_revprop_generation(fs, pool));
> > err = body(baton, subpool);
> > }
> >
>
> That looks like it works. But it only works if all writers update the
> generation file so this whole caching scheme requires an FSFS format
> bump to exclude 1.7 and earlier.

+1

(It was pointed on IRC, too.)
Received on 2012-03-05 13:57:48 CET

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.