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

[Xen-changelog] Call refresh in the domain_lookup and domain_lookup_by_name methods. This



# HG changeset patch
# User emellor@ewan
# Node ID a73ab0ddf990f2e3c341a43e3aa3d7d0e3a7cc61
# Parent  486f1c3e78052349f5014de609ad188caa73e519
Call refresh in the domain_lookup and domain_lookup_by_name methods.  This
should reduce the incidence of stale domain information being used by xend, but
is only a stop-gap.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r 486f1c3e7805 -r a73ab0ddf990 tools/python/xen/xend/XendDomain.py
--- a/tools/python/xen/xend/XendDomain.py       Sun Oct  2 17:17:26 2005
+++ b/tools/python/xen/xend/XendDomain.py       Sun Oct  2 17:21:01 2005
@@ -271,9 +271,11 @@
 
 
     def domain_lookup(self, id):
+        self.refresh()
         return self.domains.get(id)
 
     def domain_lookup_by_name(self, name):
+        self.refresh()
         dominfo = self.domains.get_by_name(name)
         if not dominfo:
             try:

_______________________________________________
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®.