FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Cluster Development

 
 
LinkBack Thread Tools
 
Old 12-13-2007, 12:39 PM
 
Default cluster/cman/daemon ais.c

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: pcaulfield@sourceware.org 2007-12-13 13:39:58

Modified files:
cman/daemon : ais.c

Log message:
Allow rrp_mode to be overridden in cluster.conf

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/ais.c.diff?cvsroot=cluster&r1=1.55&r2=1.56

--- cluster/cman/daemon/ais.c 2007/11/29 11:19:12 1.55
+++ cluster/cman/daemon/ais.c 2007/12/13 13:39:58 1.56
@@ -518,13 +518,15 @@


/* Set RRP mode appropriately */
- if (num_interfaces > 1) {
- global_objdb->object_key_create(object_handle, "rrp_mode", strlen("rrp_mode"),
- "active", strlen("active")+1);
- }
- else {
- global_objdb->object_key_create(object_handle, "rrp_mode", strlen("rrp_mode"),
- "none", strlen("none")+1);
+ if (objdb_get_string(objdb, object_handle, "rrp_mode", &value)) {
+ if (num_interfaces > 1) {
+ global_objdb->object_key_create(object_handle, "rrp_mode", strlen("rrp_mode"),
+ "active", strlen("active")+1);
+ }
+ else {
+ global_objdb->object_key_create(object_handle, "rrp_mode", strlen("rrp_mode"),
+ "none", strlen("none")+1);
+ }
}

if (objdb_get_string(objdb, object_handle, "secauth", &value)) {
 
Old 12-30-2007, 08:30 AM
 
Default cluster/cman/daemon ais.c

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: fabbione@sourceware.org 2007-12-30 09:30:15

Modified files:
cman/daemon : ais.c

Log message:
Fix error reporting to aisexec.

aisexec expects an error_string string set by config_read if config_read fails.
The lack of error_string is not checked by aisexec that will segfault.

Set error_string properly and clean up the old errorstring that is not used.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/ais.c.diff?cvsroot=cluster&r1=1.56&r2=1.57

--- cluster/cman/daemon/ais.c 2007/12/13 13:39:58 1.56
+++ cluster/cman/daemon/ais.c 2007/12/30 09:30:15 1.57
@@ -62,7 +62,6 @@
int num_ais_nodes;

static int config_run;
-static char errorstring[512];
static int startup_pipe;
static unsigned int debug_mask;
static int first_trans = 1;
@@ -231,7 +230,7 @@
if (error)
{
write_cman_pipe("Error reading config from CCS");
- sprintf(errorstring, "Error reading config from CCS");
+ *error_string = "Error reading config from CCS";
return -1;
}
 
Old 12-31-2007, 04:15 AM
 
Default cluster/cman/daemon ais.c

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: fabbione@sourceware.org 2007-12-31 05:15:46

Modified files:
cman/daemon : ais.c

Log message:
aisexec config parser expects error_string to be set also when we successfully
read the configuration.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/ais.c.diff?cvsroot=cluster&r1=1.57&r2=1.58

--- cluster/cman/daemon/ais.c 2007/12/30 09:30:15 1.57
+++ cluster/cman/daemon/ais.c 2007/12/31 05:15:43 1.58
@@ -239,6 +239,8 @@

config_run = 1;

+ *error_string = "Successfully read configuration from CCS";
+
return 0;
}
 
Old 01-02-2008, 10:05 AM
 
Default cluster/cman/daemon ais.c

CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: pcaulfield@sourceware.org 2008-01-02 11:05:33

Modified files:
cman/daemon : ais.c

Log message:
Don't know why I bothered coming in to work today

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/daemon/ais.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1= 1.44.2.4&r2=1.44.2.5

--- cluster/cman/daemon/ais.c 2008/01/02 10:56:21 1.44.2.4
+++ cluster/cman/daemon/ais.c 2008/01/02 11:05:33 1.44.2.5
@@ -29,7 +29,7 @@

/* openais headers */
#include <openais/totem/totemip.h>
-//#include <openais/service/objdb.h>
+#include <openais/service/objdb.h>
#include <openais/totem/totempg.h>
#include <openais/totem/aispoll.h>
#include <openais/service/service.h>
 

Thread Tools




All times are GMT. The time now is 03:52 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org