]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
remote: fix regression in event deregistration
authorZhou Yimin <zhouyimin@huawei.com>
Thu, 17 Oct 2013 07:59:21 +0000 (15:59 +0800)
committerEric Blake <eblake@redhat.com>
Fri, 18 Oct 2013 15:54:07 +0000 (09:54 -0600)
Introduced by 7b87a3
When I quit the process which only register VIR_DOMAIN_EVENT_ID_REBOOT,
I got error like:
"libvirt: XML-RPC error : internal error: domain event 0 not registered".
Then I add the following code, it fixed.

Signed-off-by: Zhou Yimin <zhouyimin@huawei.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
(cherry picked from commit 9712c2510ec87a87578576a407768380e250a6a4)

Conflicts:
src/remote/remote_driver.c - context

src/remote/remote_driver.c

index 7863b73e39dc81c486247d66d0f42b9d918032aa..270e00bb54e7565c254106bd5590df4344df6acf 100644 (file)
@@ -4176,7 +4176,7 @@ static int remoteDomainEventDeregisterAny(virConnectPtr conn,
     /* If that was the last callback for this eventID, we need to disable
      * events on the server */
     if (count == 0) {
-        args.eventID = callbackID;
+        args.eventID = eventID;
 
         if (call (conn, priv, 0, REMOTE_PROC_DOMAIN_EVENTS_DEREGISTER_ANY,
                   (xdrproc_t) xdr_remote_domain_events_deregister_any_args, (char *) &args,