[PATCH] ctdb: show lmaster in ctdb cat[t]db
Ralph Böhme
slow at samba.org
Thu Sep 13 05:53:26 UTC 2018
On Wed, Sep 12, 2018 at 11:00:03PM +1000, Martin Schwenke wrote:
>On Wed, 12 Sep 2018 14:05:36 +0200, Ralph Böhme <slow at samba.org> wrote:
>> I tried using ctdb_lmaster() from common, but it seems it is not really usable
>> from outside of server.
>>
>> *scratches head*
>
>Probably use ctdb_ctrl_getvnnmap() to retrieve a VNN map. To see the
>bits you need, look at the example in control_status() and
>print_status() (in ctdb/tools/ctdb.c). I doubt that you'll be able to
>use ctdb_hash() and ctdb_lmaster() directly, because they drag in old
>stuff that we don't want, but they'll give you the bits that you can
>re-use in the lmaster calculation.
I'll give it a whirl, thanks.
>I hope that helps... and that I haven't put you on the wrong
>track... :-)
I'll make sure to let you know. :)))
-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