[SCM] CTDB repository - branch master updated - ctdb-1.0.114-117-g112d252

Ronnie Sahlberg sahlberg at samba.org
Tue Jun 1 18:26:33 MDT 2010


The branch, master has been updated
       via  112d252b2ab614eeac38e4a1658cd1e85f6eb829 (commit)
      from  636ed76d04c8c499a911eb0d72d54b71b0a73d31 (commit)

http://gitweb.samba.org/?p=sahlberg/ctdb.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 112d252b2ab614eeac38e4a1658cd1e85f6eb829
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Jun 2 10:25:31 2010 +1000

    add a function to read the current socketname from the ctdb structure

-----------------------------------------------------------------------

Summary of changes:
 client/ctdb_client.c  |    5 +++++
 include/ctdb_client.h |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/client/ctdb_client.c b/client/ctdb_client.c
index ad7aa4f..4997818 100644
--- 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
 */
diff --git a/include/ctdb_client.h b/include/ctdb_client.h
index 4bb14e9..e9aa8d1 100644
--- a/include/ctdb_client.h
+++ b/include/ctdb_client.h
@@ -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


-- 
CTDB repository


More information about the samba-cvs mailing list