diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-05-01 10:18:11 +0100 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-05-01 10:18:11 +0100 |
commit | 47d265319bc1d8711c147c1e85d3cce699543d4c (patch) | |
tree | 46788d3d2b25702f363be7795f307595419a7610 | |
parent | bb4adad4e121150f2a17cf6b2fdbfc1cbee39f1c (diff) | |
download | xen-47d265319bc1d8711c147c1e85d3cce699543d4c.tar.gz xen-47d265319bc1d8711c147c1e85d3cce699543d4c.tar.bz2 xen-47d265319bc1d8711c147c1e85d3cce699543d4c.zip |
xend: Fix spurious store changes on rename/migrate
_storeChanged() was incorrectly comparing a string to an sxpr, thus
always firing and causing unnecessary watches to be fired in the
domU.
Signed-off-by: John Levon <john.levon@sun.com>
-rw-r--r-- | tools/python/xen/xend/XendDomainInfo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 4dc288314c..c082c19090 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -885,7 +885,7 @@ class XendDomainInfo: # Check whether image definition has been updated image_sxp = self._readVm('image') - if image_sxp and image_sxp != self.info.image_sxpr(): + if image_sxp and image_sxp != sxp.to_string(self.info.image_sxpr()): self.info.update_with_image_sxp(sxp.from_string(image_sxp)) changed = True |