[CTDB] LMASTER/DMASTER implementation

Alexander Bokovoy ab at samba.org
Sat Dec 2 07:51:19 GMT 2006


Tridge,

tridge at samba.org пишет:
> Alexander,
> 
>  > We started to implement LMASTER/DMASTER exchange logic in
>  > http://samba.org/~ab/ctdb/
> 
> thanks, though I think the first thing we need to do to start adding
> LMASTER/DMASTER logic is add the augmented header to the ltdb
> records. We can't do anything sensible with LMASTER != DMASTER till we
> have a place to store the location of the current DMASTER along with
> the record data.
Yes, that was specifically marked TODO in the current code, what we did
so far relates to the requestor side logic for possible cases and
handling of reply redirect.

> I'd suggest we need to start expanding common/ctdb_ltdb.c, and put all
> the logic for dealing with the ltdb there, exposing functions for
> asking for record, split into the user data and the ctdb header.
agreed.

> I'll probably also remove the TDB_INTERNAL flag and start using a real
> tdb, but auto-generate the tdb name based on the vnn so that they
> don't conflict when running all in the same directory on loopback.
yes.

-- 
/ Alexander Bokovoy



More information about the samba-technical mailing list