]> xenbits.xensource.com Git - libvirt.git/commit
qemuDomainObjBeginNestedJob: Return -2 for temporary failures
authorJiri Denemark <jdenemar@redhat.com>
Tue, 13 May 2014 12:39:35 +0000 (14:39 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 14 May 2014 11:27:07 +0000 (13:27 +0200)
commitdca377dbd63a514963a06f4f15aa61fb8cb7f19b
treeb0fe5c525ffc4468ae441cacc5aac08f2e070f0e
parent1643b158f6de87a133a5d8a80f69786055f709b1
qemuDomainObjBeginNestedJob: Return -2 for temporary failures

If job queue is full or waiting for a job times out, the function
returns -2 so that it can be handled in a different way by callers.

The change is safe since all existing callers of
qemuDomainObjBeginNestedJob check the return value to be less than zero.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_domain.c