rollback: vmgenid: comment why we regenerate vmgenid

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2018-09-19 13:34:48 +02:00
parent f7ed64e7b9
commit 4f4d9772a5

View File

@ -302,6 +302,9 @@ sub __snapshot_rollback_hook {
}
if ($conf->{vmgenid}) {
# tell the VM that it's another generation, so it can react
# appropriately, e.g. dirty-mark copies of distributed databases or
# re-initializing its random number generator
$conf->{vmgenid} = PVE::QemuServer::generate_uuid();
}
}