[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] More robust xend restart -- patch courtesy of Jed Davis.



# HG changeset patch
# User shand@xxxxxxxxxxxxxxxxxxxxxxxxxxx
# Node ID 9d3927f57bb21707d4b6f04ff2d8a4addc6f7d71
# Parent  0d4181ca955a1081abe17d98d3eb9c6fa66c68eb
More robust xend restart -- patch courtesy of Jed Davis.

Signed-off-by: Steven Hand <steven@xxxxxxxxxxxxx>

diff -r 0d4181ca955a -r 9d3927f57bb2 tools/python/xen/xend/XendDomain.py
--- a/tools/python/xen/xend/XendDomain.py       Sun Aug 28 02:42:18 2005
+++ b/tools/python/xen/xend/XendDomain.py       Sun Aug 28 02:43:33 2005
@@ -147,7 +147,10 @@
             domid = str(d['dom'])
             doms[domid] = d
         dlist = []
-        for config in self.domain_db.values():
+        domkeys = map(int, self.domain_db.keys())
+        domkeys.sort()
+        for domkey in domkeys:
+            config = self.domain_db.get(str(domkey))
             domid = str(sxp.child_value(config, 'id'))
             if domid in doms:
                 d_dom = self._new_domain(config, doms[domid])

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.