mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: block-commit: Mark disk in block jobs only on successful command
Patch 51f9f03a4ca50b070c0fbfb29748d49f583e15e1 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…
x
Reference in New Issue
Block a user