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] Call refresh in the domain_lookup and domain_lookup_by_n

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Call refresh in the domain_lookup and domain_lookup_by_name methods. This
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 02 Oct 2005 17:32:11 +0000
Delivery-date: Sun, 02 Oct 2005 17:29:44 +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 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Call refresh in the domain_lookup and domain_lookup_by_name methods. This, Xen patchbot -unstable <=