mirror of
https://github.com/samba-team/samba.git
synced 2025-09-07 21:44:22 +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:
@@ -2948,6 +2948,11 @@ int ctdb_set_socketname(struct ctdb_context *ctdb, const char *socketname)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *ctdb_get_socketname(struct ctdb_context *ctdb)
|
||||||
|
{
|
||||||
|
return ctdb->daemon.name;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
return the pnn of this node
|
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_address(struct ctdb_context *ctdb, const char *address);
|
||||||
|
|
||||||
int ctdb_set_socketname(struct ctdb_context *ctdb, const char *socketname);
|
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
|
tell ctdb what nodes are available. This takes a filename, which will contain
|
||||||
|
Reference in New Issue
Block a user