qemu: block-commit: Mark disk in block jobs only on successful command

Patch 51f9f03a4c introduces a regression
where if a blockCommit operation fails the disk is still marked as being
part of a block job but can't be unmarked later.
This commit is contained in:
Peter Krempa 2015-03-16 16:52:44 +01:00
parent 3c2ff5029b
commit ee744b5b38

View File

@ -17094,7 +17094,8 @@ qemuDomainBlockCommit(virDomainPtr dom,
goto endjob;
}
disk->blockjob = true;
if (ret == 0)
disk->blockjob = true;
if (mirror) {
if (ret == 0) {