[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Only remove domain from store once it's suspended.
# HG changeset patch # User cl349@xxxxxxxxxxxxxxxxxxxx # Node ID cd5d566e1d549948a2f55013ab79fd19e1e4a23a # Parent 79658ef5892523c2342ca14baf612d20039881cc Only remove domain from store once it's suspended. Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx> diff -r 79658ef58925 -r cd5d566e1d54 tools/python/xen/xend/XendCheckpoint.py --- a/tools/python/xen/xend/XendCheckpoint.py Mon Sep 5 14:04:36 2005 +++ b/tools/python/xen/xend/XendCheckpoint.py Mon Sep 5 14:45:19 2005 @@ -70,6 +70,8 @@ if l.rstrip() == "suspend": log.info("suspending %d" % dominfo.id) xd.domain_shutdown(dominfo.id, reason='suspend') + dominfo.state_wait("suspended") + log.info("suspend %d done" % dominfo.id) if dominfo.store_channel: try: dominfo.db.releaseDomain(dominfo.id) @@ -78,8 +80,6 @@ "error in domain release on xenstore: %s", ex) pass - dominfo.state_wait("suspended") - log.info("suspend %d done" % dominfo.id) child.tochild.write("done\n") child.tochild.flush() if filter(lambda (fd, event): event & select.POLLHUP, r): _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |