[Libvir] patch: Domain.free() in Ruby bindings
Vadim Zaliva
lord at crocodile.org
Tue Apr 1 17:04:35 UTC 2008
Attached patch adds new method free() to Domain class. Invocation of
this method
calls virDomainFree(). After this call, all other calls to this domain
object would
fail.
The purpose of this patch is to solve problem caused by libvirt
caching, when creation
of new domain from XML is re-using previous definition with the same
name, if domain
object associated with older definition have not been yet freed by
Ruby garbage collector
(see previous discussion in this mailing list for details).
Sincerely,
Vadim Zaliva
P.S. I think Python bindings will need similar method as well.
P.P.S. I have tested this patch, and I can see that it solves the
problem I was facing.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: free.patch
Type: application/octet-stream
Size: 2031 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080401/11b66302/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1607 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080401/11b66302/attachment-0001.p7s>
More information about the libvir-list
mailing list