mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
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:
parent
3c2ff5029b
commit
ee744b5b38
@ -17094,7 +17094,8 @@ qemuDomainBlockCommit(virDomainPtr dom,
|
||||
goto endjob;
|
||||
}
|
||||
|
||||
disk->blockjob = true;
|
||||
if (ret == 0)
|
||||
disk->blockjob = true;
|
||||
|
||||
if (mirror) {
|
||||
if (ret == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user