1
0
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:
Ronnie Sahlberg 2010-06-02 10:25:31 +10:00
parent 3c7350b8c6
commit 8666094e92
2 changed files with 6 additions and 0 deletions

View File

@ -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
*/

View File

@ -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