mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
add a function to read the current socketname from the ctdb structure
(This used to be ctdb commit 112d252b2ab614eeac38e4a1658cd1e85f6eb829)
This commit is contained in:
parent
3c7350b8c6
commit
8666094e92
@ -2948,6 +2948,11 @@ int ctdb_set_socketname(struct ctdb_context *ctdb, const char *socketname)
|
||||
return 0;
|
||||
}
|
||||
|
||||
const char *ctdb_get_socketname(struct ctdb_context *ctdb)
|
||||
{
|
||||
return ctdb->daemon.name;
|
||||
}
|
||||
|
||||
/*
|
||||
return the pnn of this node
|
||||
*/
|
||||
|
@ -87,6 +87,7 @@ void ctdb_set_max_lacount(struct ctdb_context *ctdb, unsigned count);
|
||||
int ctdb_set_address(struct ctdb_context *ctdb, const char *address);
|
||||
|
||||
int ctdb_set_socketname(struct ctdb_context *ctdb, const char *socketname);
|
||||
const char *ctdb_get_socketname(struct ctdb_context *ctdb);
|
||||
|
||||
/*
|
||||
tell ctdb what nodes are available. This takes a filename, which will contain
|
||||
|
Loading…
Reference in New Issue
Block a user