[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: John Szakmeister <john_at_szakmeister.net>
Date: 2003-07-18 12:25:48 CEST

On Thursday 17 July 2003 09:58 pm, cmpilato@collab.net wrote:
> 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.

I thought it was a little strange that you couldn't just walk over a table.
Looks like I didn't make it far enough through the BDB docs. :-)

Thanks!

-John

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jul 18 12:25:35 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.