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: crm by andrew from
([email protected])
2. Linux-HA CVS: mgmt by zhenh from
([email protected])
----------------------------------------------------------------------
Message: 1
Date: Thu, 30 Mar 2006 03:18:23 -0700 (MST)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: crm by andrew from
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
linux-ha CVS committal
Author : andrew
Host :
Project : linux-ha
Module : crm
Dir : linux-ha/crm
Modified Files:
crm-1.0.dtd
Log Message:
wrong case
===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/crm/crm-1.0.dtd,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -3 -r1.51 -r1.52
--- crm-1.0.dtd 30 Mar 2006 10:17:53 -0000 1.51
+++ crm-1.0.dtd 30 Mar 2006 10:18:22 -0000 1.52
@@ -143,7 +143,7 @@
action (start|stop) 'start'
type (before|after) 'after'
to CDATA #REQUIRED
- symetrical (true|1|false|0) 'TRUE'>
+ symetrical (true|1|false|0) 'true'>
<!-- Annotated version -->
<!ELEMENT rsc_colocation (lifetime?)>
------------------------------
Message: 2
Date: Thu, 30 Mar 2006 03:33:06 -0700 (MST)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: mgmt by zhenh from
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
linux-ha CVS committal
Author : zhenh
Host :
Project : linux-ha
Module : mgmt
Dir : linux-ha/mgmt/client
Modified Files:
haclient.py.in
Log Message:
update the data only if there is no other event in a certain time
===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/mgmt/client/haclient.py.in,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- haclient.py.in 30 Mar 2006 10:09:17 -0000 1.16
+++ haclient.py.in 30 Mar 2006 10:33:06 -0000 1.17
@@ -1345,6 +1345,7 @@
password = None
cache = {}
io_tag = None
+ update_timer = -1
active_nodes = []
failed_reason = ""
@@ -1408,7 +1409,7 @@
self.active_nodes = self.get_active_nodes()
window.statusbar.push(1,"Updating data from server...")
- gobject.timeout_add(100, window.update)
+ self.update_timer = gobject.timeout_add(100, self.update)
self.do_cmd("regevt\nevt:cib_changed")
self.do_cmd("regevt\nevt:disconnected")
@@ -1455,10 +1456,10 @@
event = mgmt_recvmsg()
log("on_event:"+str(event))
if event == "evt:cib_changed" :
- self.dirty = True
- self.cache_clear()
window.statusbar.push(1,"Updating data from server...")
- gobject.timeout_add(100, window.update)
+ if self.update_timer != -1 :
+ gobject.source_remove(self.update_timer)
+ self.update_timer = gobject.timeout_add(100,
self.update)
return True
elif event == None or event == "evt:disconnected" :
self.logout()
@@ -1470,7 +1471,12 @@
msgbox(_("can't connect to any node"))
return True
-
+
+ def update(self) :
+ self.cache_clear()
+ window.update()
+ self.update_timer = -1
+
# cluster functions
def get_cluster_config(self) :
------------------------------
_______________________________________________
Linux-ha-cvs mailing list
[email protected]
http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs
End of Linux-ha-cvs Digest, Vol 28, Issue 84
********************************************