WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Fix read of integers from database on event channel rest

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Fix read of integers from database on event channel restore.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 27 Jul 2005 13:30:13 -0400
Delivery-date: Wed, 27 Jul 2005 17:30:52 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID cda48f530e93409b4808b57355e8a1dbd52a29d8
# Parent  c6c6cfaab2bfb0ca9fed4f354b8aec5bdc930dcb
Fix read of integers from database on event channel restore.
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>

diff -r c6c6cfaab2bf -r cda48f530e93 tools/python/xen/xend/server/channel.py
--- a/tools/python/xen/xend/server/channel.py   Wed Jul 27 17:03:00 2005
+++ b/tools/python/xen/xend/server/channel.py   Wed Jul 27 17:04:47 2005
@@ -42,16 +42,16 @@
         @param port2
         """
         try:
-            dom1  = int(db['dom1'])
+            dom1  = int(db['dom1'].getData())
         except: pass
         try:
-            dom2  = int(db['dom2'])
+            dom2  = int(db['dom2'].getData())
         except: pass
         try:
-            port1 = int(db['port1'])
+            port1 = int(db['port1'].getData())
         except: pass
         try:
-            port2 = int(db['port2'])
+            port2 = int(db['port2'].getData())
         except: pass
         evtchn = cls.interdomain(dom1, dom2, port1=port1, port2=port2)
         return evtchn

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Fix read of integers from database on event channel restore., Xen patchbot -unstable <=