jra at samba.org
Wed Aug 2 21:51:11 GMT 2006
On Wed, Aug 02, 2006 at 11:22:14PM +0200, Volker Lendecke wrote:
> Attached find a trivial wrapper around tdb that might make
> multi-indexed tdb files sane.
> The idea is that for the modifying functions you provide a
> callback function that creates a list of index strings out
> of a record. Thanks to Jeremy for this good idea, I had
> something more complicated in mind.
> The tdb_multindex.c lib creates a random primary key for you
> and sets the index records to that primary key under a tdb
> transaction. That's basically the whole idea.
> What's missing is tdb_reindex and tdb_traverse_indexed
> skipping all the non-primary records.
> The sample use in torture.c will certainly be expanded.
Wow - this looks really nice ! How soon can we move over
to using this ?
More information about the samba-technical