[PATCH] Activate partitions module

Andrew Bartlett abartlet at samba.org
Tue Jul 11 12:47:23 GMT 2006


On Tue, 2006-07-11 at 13:52 +0200, Stefan (metze) Metzmacher wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 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
> > partitions.  
> > 
> >> 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
> > partitions?
> 
> 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.

Thanks, that sounds quite practical!

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Student Network Administrator, Hawker College  http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20060711/d41c1086/attachment.bin


More information about the samba-technical mailing list