mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
qemu: checkpoint: Use qemuMonitorTransactionBitmapMergeSourceAddBitmap
Use the new helper in qemuCheckpointDiscard rather than constructing the array manually. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
cdd8a6690e
commit
e136236158
@ -170,7 +170,7 @@ qemuCheckpointDiscard(virQEMUDriverPtr driver,
|
||||
if (!(arr = virJSONValueNewArray()))
|
||||
return -1;
|
||||
|
||||
if (virJSONValueArrayAppendString(arr, disk->bitmap) < 0)
|
||||
if (qemuMonitorTransactionBitmapMergeSourceAddBitmap(arr, node, disk->bitmap) < 0)
|
||||
return -1;
|
||||
|
||||
if (chk == virDomainCheckpointGetCurrent(vm->checkpoints)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user