git.samba.org
/
metze
/
ctdb
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add a function to read the current socketname from the ctdb structure
[metze/ctdb/wip.git]
/
client
/
ctdb_client.c
diff --git
a/client/ctdb_client.c
b/client/ctdb_client.c
index ad7aa4f8dcbf3e639a13c332a59a9cb4652997d3..4997818bca7cab524aaf605daa6a2fb08338803b 100644
(file)
--- a/
client/ctdb_client.c
+++ b/
client/ctdb_client.c
@@
-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
*/