[PATCH] ctdb: show lmaster in ctdb cat[t]db

Ralph Böhme slow at samba.org
Wed Sep 12 12:05:36 UTC 2018


On Wed, Sep 12, 2018 at 10:56:06AM +1000, Amitay Isaacs wrote:
>On Tue, Sep 11, 2018 at 4:24 PM, Ralph Böhme <slow at samba.org> wrote:
>> Would this be useful upstream?
>
>It's a good idea in general.
>
>>
>> Patch attached, please review & push if happy.
>>
>
>The logic for calculation of lmaster is a bit more involved than using
>the number of nodes in the cluster.
>
>The nodes can be inactive, in which case they have be ignored from the
>lmaster calculation.
>Also, nodes can be deleted so, nodemap might have holes.
>
>As a first approximation the patch will produce the correct output in
>most scenarios, but I would prefer it not generate wrong output at any
>time.

oh, good point, thanks. :)

I tried using ctdb_lmaster() from common, but it seems it is not really usable 
from outside of server.

*scratches head*

-slow

-- 
Ralph Boehme, Samba Team       https://samba.org/
Samba Developer, SerNet GmbH   https://sernet.de/en/samba/
GPG Key Fingerprint:           FAE2 C608 8A24 2520 51C5
                               59E4 AA1E 9B71 2639 9E46



More information about the samba-technical mailing list