Cluster Project branch, master, updated. cluster-2.99.00-11-g4e449d4
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Cluster Project".
The branch, master has been updated
via 4e449d4110b416a7c1da8eb2cca3e81338085db5 (commit)
from f0cc81be7ea17b3d53916c150bb8d4231511b2fa (commit)Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit 4e449d4110b416a7c1da8eb2cca3e81338085db5
Author: Christine Caulfield <[email protected]> Date: Thu May 1 13:23:25 2008 +0100
[CMAN] Remove external dependancies from config modules
This remove the external depandancies from the aisexec config modules because they break all sorts of things.
Instead of logging errors, they return them back to the caller - this removes the dependancy on logsys.
Also, I've remove the totemip function calls and replaced them with usable subsets in the config code itself.
The cman and ccs config plugins now work with testconfdb in standalone mode.
-----------------------------------------------------------------------
Summary of changes:
ccs/ccsais/Makefile | 6 +- ccs/ccsais/config.c | 17 ---- cman/daemon/Makefile | 3 +- cman/daemon/cman-preconfig.c | 199 +++++++++++++++++++++++++----------------- cman/daemon/nodelist.h | 1 - 5 files changed, 119 insertions(+), 107 deletions(-)
ccs/ccsais/Makefile +1 -5
@@ -28,18 +28,14 @@ CFLAGS += -I${incdir} LDFLAGS += -L${ccslibdir} -lccs -OBJS= config.o logging.o +OBJS= config.o ${TARGET}: ${OBJS} $(CC) -shared -Wl,-soname,$@ -o $@ $^ $(LDFLAGS) -logging.c: - ln -sf $(S)/../../cman/daemon/logging.c logging.c - depends: $(MAKE) -C ../lib all clean: generalclean - rm -f logging.c -include $(OBJS:.o=.d)
ccs/ccsais/config.c +0 -17
@@ -28,7 +28,6 @@#include <openais/service/config.h> #include <openais/lcr/lcr_comp.h> #include <openais/service/swab.h> -#include <openais/service/logsys.h> #include "ccs.h" #include "logging.h"
@@ -36,9 +35,6 @@#define CONFIG_VERSION_PATH "/cluster/@config_version"#define CONFIG_NAME_PATH "/cluster/@name" -LOGSYS_DECLARE_SUBSYS ("CCS" ,LOG_INFO ); - -static unsigned int debug_mask;static int ccs_readconfig (struct objdb_iface_ver0 *objdb,char **error_string);static int init_config (struct objdb_iface_ver0 *objdb,char *error_string);static char error_reason[1024 ];
@@ -131,7 +127,6 @@ static int read_config_for(int ccs_fd, struct objdb_iface_ver0 *objdb, unsignedif (equal) { *equal =0 ; -fprintf (stderr,"CCS: got config item %s: '%s' = '%s'\n" , object, str, equal+1 ); objdb->object_key_create (object_handle, str,strlen (str), equal+1 ,strlen (equal+1 )+1 ); gotcount++;
@@ -201,20 +196,9 @@ static int ccs_readconfig(struct objdb_iface_ver0 *objdb, char **error_string) {int ret; -/* Initialise early logging */ -if (getenv ("CCS_DEBUGLOG" )) - debug_mask =atoi (getenv ("CCS_DEBUGLOG" )); - -set_debuglog (debug_mask); -/* We need to set this up to internal defaults too early */ openlog ("openais" ,LOG_CONS |LOG_PID ,LOG_LOCAL4 ); -/* Enable stderr logging if requested by cman_tool */ -if (debug_mask) { -logsys_config_subsys_set ("CCS" ,LOGSYS_TAG_LOG ,LOG_DEBUG ); - } -/* Read low-level totem/aisexec etc config from CCS */ if ( !(ret =init_config (objdb, error_reason)) )sprintf (error_reason,"%s" ,"Successfully read config from CCS\n" );
@@ -233,7 +217,6 @@ static int init_config(struct objdb_iface_ver0 *objdb, char *error_string)/* Connect to ccsd */ if (getenv ("CCS_CLUSTER_NAME" )) { cname =getenv ("CCS_CLUSTER_NAME" ); -log_printf (LOG_INFO ,"Using override cluster name %s\n" , cname); } cd =ccs_force_connect (cname,0 );
cman/daemon/Makefile +1 -2
@@ -34,8 +34,7 @@ OBJS1= daemon.o \ barrier.o \ cmanconfig.o -OBJS2= cman-preconfig.o \ - logging.o +OBJS2= cman-preconfig.o ${TARGET1}: ${OBJS1} $(CC) -shared -Wl,-soname,$@ -o $@ $^ $(LDFLAGS)
cman/daemon/cman-preconfig.c +117 -82
440 lines not on this page · raw message
cman/daemon/nodelist.h +0 -1
@@ -60,7 +60,6 @@ static unsigned int nodelist_byname(struct objdb_iface_ver0 *objdb, nodes_handle =nodeslist_init (objdb, cluster_parent_handle, &parent_handle);while (nodes_handle) {if (objdb_get_string (objdb, nodes_handle,"name" , &nodename)) { -log_printf (LOG_ERR ,"Cannot get node name" );break ; }if (strcmp (nodename, name) ==0 )
hooks/post-receive
--
Cluster Project