[PATCH] Activate partitions module
Stefan (metze) Metzmacher
metze at samba.org
Tue Jul 11 11:52:02 GMT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Andrew Bartlett schrieb:
> On Mon, 2006-07-03 at 10:03 +0200, Stefan (metze) Metzmacher wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>> Andrew Bartlett schrieb:
>>> This patch activates the partitions module, which is already in the
>>> Samba4 tree.
>>> As previously described, the partitions module creates multiple
>>> databases under our ldap base, and limits searches to one database at a
>>> time. It also makes it easier to point some parts of the DIT at a
>>> remote LDAP server.
>> Hi Andrew,
>> the problem here is the highestCommitedUsn, this would be wrong if we
>> have multiple ldb's.
> I've added code to allocate the USN globally, and to use 'global'
> transactions. I've also expanded our ejs ldb testsuite to confirm that
> the USN is globally allocated (by means of simple addition) over all
>> Also we need to combine the results of all partitions on the global
>> catalog port.
> This is my next task. Do you have any preference for how I should
> indicate to ldb from the GC port that searches should be over multiple
For now I think the best would be to open the ldb with different options:
1.) as readonly, LDB_FLG_RDONLY (I'm not sure if we really deny writes
at ldb level yet..)
(this should be done in ldap_server.c)
2.) pass an opaque option to ldb, and the partition modules
reads this at connect time, and switches between two search
implementations. the default one and the one that combines searches
from all partitions.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the samba-technical