mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
qemu: Reset the node-name allocator in qemuDomainObjPrivateDataClear
qemuDomainObjPrivateDataClear clears state which become invalid after VM stopped running and the node name allocator belongs there. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
bae81b8e76
commit
728b993c8a
@ -2236,6 +2236,9 @@ qemuDomainObjPrivateDataClear(qemuDomainObjPrivatePtr priv)
|
||||
|
||||
virDomainBackupDefFree(priv->backup);
|
||||
priv->backup = NULL;
|
||||
|
||||
/* reset node name allocator */
|
||||
qemuDomainStorageIdReset(priv);
|
||||
}
|
||||
|
||||
|
||||
|
@ -7567,9 +7567,6 @@ void qemuProcessStop(virQEMUDriverPtr driver,
|
||||
/* clear all private data entries which are no longer needed */
|
||||
qemuDomainObjPrivateDataClear(priv);
|
||||
|
||||
/* reset node name allocator */
|
||||
qemuDomainStorageIdReset(priv);
|
||||
|
||||
/* The "release" hook cleans up additional resources */
|
||||
if (virHookPresent(VIR_HOOK_DRIVER_QEMU)) {
|
||||
g_autofree char *xml = qemuDomainDefFormatXML(driver, NULL, vm->def, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user