[PATCH] ctdb: honor CTDB_SOCKET in the server

Martin Schwenke martin at meltin.net
Tue Sep 8 10:13:03 UTC 2015


On Tue, 8 Sep 2015 10:56:11 +0200, Michael Adam <obnox at samba.org> wrote:

> I am not 100% sure this would be the intended behavior,
> but it is more consistent to have the same precedence
> chain in server and client:
> 
> - compiled-in default define CTDB_SOCKET
> - overridden by env variable CTDB_SOCKET
> - overridden by cmdline option --socket
> 
> Review appreciated!

I don't think this can do any harm, but...

In the ctdb client tool CTDB_SOCKET only really exists to support
onnode, when CTDB_NODES_SOCKETS is set.

If ctdbd_wrapper is used to start ctdbd then it will convert
CTDB_SOCKET (either from configuration file or from environment) into
--socket anyway.

Tomorrow morning I'll push the other CTDB patches you posted...  and
this one if you really have a use for it.   :-)

peace & happiness,
martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 173 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20150908/49b0f40e/attachment.sig>


More information about the samba-technical mailing list