Re: [libvirt] Connection release is not correct in libvirt and libvrt java

2013-01-09 Thread Claudio Bley
Hi, sorry for replying so late. At Wed, 19 Dec 2012 15:31:54 -0700, Eric Blake wrote: > > On 12/18/2012 08:14 AM, Benjamin Wang (gendwang) wrote: > > For libvirt java, there are similar issue. I have changed code as following > > in Collect.java. Please also give your comments. > > public in

Re: [libvirt] Connection release is not correct in libvirt and libvrt java

2012-12-19 Thread Eric Blake
On 12/18/2012 08:14 AM, Benjamin Wang (gendwang) wrote: > Now if the cable is unplugged and the application call virConnectClose to > release connection, the code will enter into the error procedure, the > connection > Can't be released. I have changed the following two parts to fix this issue.

[libvirt] Connection release is not correct in libvirt and libvrt java

2012-12-18 Thread Benjamin Wang (gendwang)
Hi, The following is the current code to release connection in libvirt. int virConnectClose(virConnectPtr conn) { ... if (!VIR_IS_CONNECT(conn)) { virLibConnError(VIR_ERR_INVALID_CONN, __FUNCTION__); goto error; } ... error: virDispatchError(NULL); return ret; }