samba-technical@lists.samba.org
[Top] [All Lists]

Re: multi-indexed tdb

Subject: Re: multi-indexed tdb
From: "Stefan (metze) Metzmacher"
Date: Thu, 03 Aug 2006 09:48:23 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Volker Lendecke schrieb:
> It's a bit difficult to get that really reliable. You can't
> put key function signatures into the files. If we had and
> interpreted language, we could put the functions into the db
> itself, but with C that's not possible. How do you propose
> to  make that a bit more safe?

I mean with this wrapper you use only PRIM/* ans IDX/*/* keys.
and adding a "VERSION" key with a number would be good when you later
want to imporove the traverse cases or and need to change the way
indexes are stored.

New code could check this version and convert the old entries...

metze
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFE0apHm70gjA5TCD8RAoAvAJ9yEsa9TqFzkl+Wl/GVkf6meDCG0wCgg4Y1
CqmrtrzIssw62qbwSlzWGns=
=SCpU
-----END PGP SIGNATURE-----

<Prev in Thread] Current Thread [Next in Thread>