提交 e1362361 编写于 作者: P Peter Krempa

qemu: checkpoint: Use qemuMonitorTransactionBitmapMergeSourceAddBitmap

Use the new helper in qemuCheckpointDiscard rather than constructing the
array manually.
Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 cdd8a669
......@@ -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)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册