Send Linux-ha-cvs mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Linux-ha-cvs digest..."
Today's Topics:
1. Linux-HA CVS: heartbeat by alan from
([email protected])
2. Linux-HA CVS: lib by alan from ([email protected])
3. Linux-HA CVS: lib by alan from ([email protected])
----------------------------------------------------------------------
Message: 1
Date: Mon, 6 Feb 2006 07:00:43 -0700 (MST)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: heartbeat by alan from
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
linux-ha CVS committal
Author : alan
Host :
Project : linux-ha
Module : heartbeat
Dir : linux-ha/heartbeat
Modified Files:
heartbeat.c
Log Message:
Changed heartbeat's child processes to run one notch lower than it in realtime
priority.
===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/heartbeat/heartbeat.c,v
retrieving revision 1.492
retrieving revision 1.493
diff -u -3 -r1.492 -r1.493
--- heartbeat.c 6 Feb 2006 04:34:36 -0000 1.492
+++ heartbeat.c 6 Feb 2006 14:00:43 -0000 1.493
@@ -2,7 +2,7 @@
* TODO:
* 1) Man page update
*/
-/* $Id: heartbeat.c,v 1.492 2006/02/06 04:34:36 alan Exp $ */
+/* $Id: heartbeat.c,v 1.493 2006/02/06 14:00:43 alan Exp $ */
/*
* heartbeat: Linux-HA heartbeat code
*
@@ -974,7 +974,9 @@
"Soldiering on...");
}
- cl_make_realtime(-1, hb_realtime_prio, 16, 8);
+ cl_make_realtime(-1
+ , (hb_realtime_prio > 1 ? hb_realtime_prio-1 : hb_realtime_prio)
+ , 16, 64);
set_proc_title("%s: read: %s %s", cmdname, mp->type, mp->name);
cl_cdtocoredir();
cl_set_all_coredump_signal_handlers();
@@ -1049,7 +1051,9 @@
}
set_proc_title("%s: write: %s %s", cmdname, mp->type, mp->name);
- cl_make_realtime(-1, hb_realtime_prio, 16, 8);
+ cl_make_realtime(-1
+ , hb_realtime_prio > 1 ? hb_realtime_prio-1 : hb_realtime_prio
+ , 16, 64);
cl_cdtocoredir();
cl_set_all_coredump_signal_handlers();
drop_privs(0, 0); /* Become nobody */
@@ -1121,7 +1125,9 @@
exit(1);
}
- cl_make_realtime(-1, hb_realtime_prio, 16, 32);
+ cl_make_realtime(-1
+ , (hb_realtime_prio > 1 ? hb_realtime_prio-1 : hb_realtime_prio)
+ , 16, 8);
cl_cdtocoredir();
cl_set_all_coredump_signal_handlers();
drop_privs(0, 0); /* Become nobody */
@@ -6084,6 +6090,10 @@
/*
* $Log: heartbeat.c,v $
+ * Revision 1.493 2006/02/06 14:00:43 alan
+ * Changed heartbeat's child processes to run one notch lower than it in
realtime
+ * priority.
+ *
* Revision 1.492 2006/02/06 04:34:36 alan
* Removed two cases where we could possibly block (but we didn't realize it)
* They've been in the code since a very long time ago.
------------------------------
Message: 2
Date: Mon, 6 Feb 2006 09:42:14 -0700 (MST)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: lib by alan from
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
linux-ha CVS committal
Author : alan
Host :
Project : linux-ha
Module : lib
Dir : linux-ha/lib/clplumbing
Modified Files:
cl_msg.c
Log Message:
Put in a warning about selecting traditional_compression...
===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/lib/clplumbing/cl_msg.c,v
retrieving revision 1.101
retrieving revision 1.102
diff -u -3 -r1.101 -r1.102
--- cl_msg.c 3 Nov 2005 22:28:32 -0000 1.101
+++ cl_msg.c 6 Feb 2006 16:42:14 -0000 1.102
@@ -1,4 +1,4 @@
-/* $Id: cl_msg.c,v 1.101 2005/11/03 22:28:32 gshi Exp $ */
+/* $Id: cl_msg.c,v 1.102 2006/02/06 16:42:14 alan Exp $ */
/*
* Heartbeat messaging object.
*
@@ -101,12 +101,21 @@
extern int struct_netstringlen(size_t namlen, size_t vallen, const void*
value);
extern int process_netstring_nvpair(struct ha_msg* m, const char* nvpair, int
nvlen);
static char* msg2wirefmt_ll(struct ha_msg*m, size_t* len, gboolean
need_compress);
+extern GHashTable* CompressFuncs;
void
cl_set_traditional_compression(gboolean value)
{
use_traditional_compression = value;
+ if (use_traditional_compression && CompressFuncs) {
+ cl_log(LOG_WARNING
+ , "Traditional compression selected"
+ ". Realtime behavior will likely be impacted(!)");
+ cl_log(LOG_INFO
+ , "See %s for more information."
+ , HAURL("ha.cf/TraditionalCompressionDirective"));
+ }
}
void
@@ -2447,6 +2456,9 @@
#endif
/*
* $Log: cl_msg.c,v $
+ * Revision 1.102 2006/02/06 16:42:14 alan
+ * Put in a warning about selecting traditional_compression...
+ *
* Revision 1.101 2005/11/03 22:28:32 gshi
* nlens are size_t*.We should use size_t to do malloc.
* It could cause ia64 to mess up memory otherwise
------------------------------
Message: 3
Date: Mon, 6 Feb 2006 09:43:07 -0700 (MST)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: lib by alan from
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
linux-ha CVS committal
Author : alan
Host :
Project : linux-ha
Module : lib
Dir : linux-ha/lib/clplumbing
Modified Files:
cl_compress.c
Log Message:
Changed some local variable names to not alias (be the same as) a more
global name.
===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/lib/clplumbing/cl_compress.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- cl_compress.c 2 Dec 2005 23:49:50 -0000 1.9
+++ cl_compress.c 6 Feb 2006 16:43:07 -0000 1.10
@@ -310,7 +310,7 @@
size_t destlen = MAXMSG;
int rc;
struct ha_msg* ret;
- const char* compress_name;
+ const char* decompress_name;
struct hb_compress_fns* funcs = NULL;
if (m == NULL){
@@ -330,19 +330,19 @@
return NULL;
}
- compress_name = ha_msg_value(m, COMPRESS_NAME);
- if (compress_name == NULL){
+ decompress_name = ha_msg_value(m, COMPRESS_NAME);
+ if (decompress_name == NULL){
cl_log(LOG_ERR, "compress name not found");
return NULL;
}
- funcs = get_compress_fns(compress_name);
+ funcs = get_compress_fns(decompress_name);
if (funcs == NULL){
cl_log(LOG_ERR, "%s: compress method(%s) is not"
" supported in this machine",
- __FUNCTION__, compress_name);
+ __FUNCTION__, decompress_name);
return NULL;
}
@@ -372,7 +372,7 @@
char* value;
int vallen;
int rc;
- const char* compress_name;
+ const char* decompress_name;
struct hb_compress_fns* funcs;
if ( msg == NULL|| index >= msg->nfields){
@@ -385,19 +385,19 @@
value = msg->values[index];
vallen = msg->vlens[index];
- compress_name = ha_msg_value(msg, COMPRESS_NAME);
- if (compress_name == NULL){
+ decompress_name = ha_msg_value(msg, COMPRESS_NAME);
+ if (decompress_name == NULL){
cl_log(LOG_ERR, "compress name not found");
return HA_FAIL;
}
- funcs = get_compress_fns(compress_name);
+ funcs = get_compress_fns(decompress_name);
if (funcs == NULL){
cl_log(LOG_ERR, "%s: compress method(%s) is not"
" supported in this machine",
- __FUNCTION__, compress_name);
+ __FUNCTION__, decompress_name);
return HA_FAIL;
}
@@ -426,7 +426,7 @@
return HA_FAIL;
}
- if (msg_compress_fns== NULL){
+ if (msg_compress_fns == NULL){
if (compress_name == NULL){
compress_name = getenv(HACOMPRESSNAME);
}
------------------------------
_______________________________________________
Linux-ha-cvs mailing list
[email protected]
http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs
End of Linux-ha-cvs Digest, Vol 27, Issue 30
********************************************