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

Re: A quick-and-dirty MySQL fs backend

From: Edmund Horner <chrysophylax_at_chrysophylax.cjb.net>
Date: 2004-02-23 23:10:35 CET

kfogel@collab.net wrote:
> Edmund, I think it's only fair to tell you now: this couldn't be
> integrated into Subversion unless it takes a similar route to what
> Glenn Thompson is doing, whereby he first abstracts the fs APIs and
> then implements the new backend against the APIs. (Of course, in that
> case, it might just be better to join forces with Glenn.)

Regarding APIs, are you talking about multiple libraries (libsvn_fs,
libsvn_fs_bdb, libsvn_fs_mysql, etc.), like RA?

I ended up abstracting things a little bit, that is I've moved all
remaining BDB-specific stuff into the bdb/ dir, except for a
svn_fs_new_bdb() function, and created a vtable that is set up by that
function... it's not very elegant (especially since I've not bothered
with re-indenting after all the searching-and-replacing!) but I've got
it working again.

The problem is that the operations provided by the vtable are specific
to the current BDB schema... they won't be much use if a more different
implementation (such as storing files as orginary files) comes along.

Happy Subversion 1.0 day.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Feb 23 23:13:19 2004

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.