]> git.proxmox.com Git - pve-guest-common.git/commit
Get snapshots when no state is available.
authorWolfgang Link <w.link@proxmox.com>
Wed, 9 May 2018 12:48:24 +0000 (14:48 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 9 May 2018 13:10:30 +0000 (15:10 +0200)
commitd5b277dc99ffcdeba9977ddad145621598f87e7a
tree1ada5da20d8f7df048fb01d1f28701e63d12c290
parenta1dfeff3a8502544123245ea61ad62cbe97803b7
Get snapshots when no state is available.

With this patch we can restore the state of a state less job.
It may happen that there are more replication snapshots,
because no job state is known can not delete any snapshot.
Existing multiple replication-snapshot happens
when a node fails in middel of a replication
and then the VM is moved to another node.
That's why we have to test if we have a common base on both nodes.
Given this, we take this as a replica state.
After we have a state again, the rest of the snapshots can be deleted on the next run.
PVE/Replication.pm