[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] Xend: Refactor VMMetrics Destruction
This is a clean up patch about the destruction of xen-api instances. Xen-api classes based on XendBase class have their instances stored in XendAPIStore. Instances which belong to a domain (such as vmmeetrics and dpci) should be remove from XendAPIStore when the domain is destroyed. I looked into domain destruction code path in xend and it seemed the destruction was essentially done in XendDomain.py by deleting domains from the domain list like: del self.domains[domid] (for normall domains) del self.managed_domains[dom.get_uuid()] (for managed domains) This patch simply invokes destroy_xapi_instances() right after these lines to assure theese instances will be removed at the same time as the domain's disappearance. Regards, ----------------------- Yosuke Iwamatsu NEC Corporation Attachment:
destroy_vmmetrics.patch _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |