mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
Watch for @introduceDomain, for symmetry with the existing watch on
@releaseDomain. Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
d4a55b4a44
commit
5be19e898d
1 file changed
+3
-2
@@ -81,7 +81,8 @@ class XendDomain:
|
||||
# that we're sure that we haven't missed any releases, but inside
|
||||
# the domains_lock, as we don't want the watch to fire until after
|
||||
# the refresh call has completed.
|
||||
xswatch("@releaseDomain", self.onReleaseDomain)
|
||||
xswatch("@introduceDomain", self.onChangeDomain)
|
||||
xswatch("@releaseDomain", self.onChangeDomain)
|
||||
|
||||
self.refresh(True)
|
||||
finally:
|
||||
@@ -121,7 +122,7 @@ class XendDomain:
|
||||
|
||||
## private:
|
||||
|
||||
def onReleaseDomain(self, _):
|
||||
def onChangeDomain(self, _):
|
||||
self.domains_lock.acquire()
|
||||
try:
|
||||
self.refresh()
|
||||
|
||||