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

Re: Issue 1074: Need a svnadmin command to verify that the repository is not corrupted

From: <cmpilato_at_collab.net>
Date: 2003-07-18 03:58:39 CEST

John Szakmeister <john@szakmeister.net> writes:

> But I have a few questions. First, I've sat down and gone through the FS
> structure documentation several times (which, btw, is very interesting to a
> guy who hasn't seen how databases are really used :-) and saw that you need
> a key to access the rep. Which made reading every rep from a table an
> unlikely thing to do. :-)

You need only create a cursor into the representations table, do a
linear walk over the whole table, and that's that. You can see
examples of this in libsvn_fs/bdb/txn-table.c:svn_fs__bdb_get_txn_list().

If I were writing this, I would make this linear walk function live in
bdb/reps-table.c, and it would call a callback function for each row.
That callback would live in libsvn_fs/reps-strings.c, and would use
the functions in that file for reading the representation and string
data, and verifying checksums.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jul 18 03:59:26 2003

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.