[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libvir] patch: Domain.free() in Ruby bindings

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

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).

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.

Attachment: free.patch
Description: Binary data

Attachment: smime.p7s
Description: S/MIME cryptographic signature

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]