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