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

Re: svn commit: r1381808 - in /subversion/trunk/subversion/libsvn_fs_fs: fs_fs.c fs_fs.h

From: Stefan Fuhrmann <stefan.fuhrmann_at_wandisco.com>
Date: Sat, 8 Sep 2012 01:32:54 +0200

On Fri, Sep 7, 2012 at 9:36 PM, Daniel Shahaf <danielsh_at_elego.de> wrote:

> I think this fix is wrong. svn_fs_fs__read_noderev() should return the
> parsed noderev as is --- if it's a revision file and the noderev
> contains an is-fresh-txn-root field, then it needs to reflect that.
>

The problem is that the whole situation is very messy:

* the flag basically says "this is still under construction,
  redirect data lookup as required". For committed data,
  this is clearly an invalid state or at least useless info.

* there is some bug that will leave this flag in empty
  revisions. This bug needs to be found an fixed (not
  a big problem, just needs to be done).
* _existing_ repositories have cases of this otherwise
  benign corruption.These cases need to be handled
  gracefully. 1.8 checks for issue #4129 will report all
  those repositories as corrupted.

* the fix for issue #2608 makes svn_fs_fs__dag_get_revision
  report the "wrong" revision.

The only other way to make that work would be an
additional flag in noderev structure that allows for the
"is-fresh-txn-root" flag to be set but ignoring it in all
other code.

Would you be more happy with that solution?

-- Stefan^2.

-- 
*
Join us this October at Subversion Live
2012<http://www.wandisco.com/svn-live-2012>
 for two days of best practice SVN training, networking, live demos,
committer meet and greet, and more! Space is limited, so get signed up
today<http://www.wandisco.com/svn-live-2012>
!
*
Received on 2012-09-08 01:33:27 CEST

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.