5
0
mirror of git://git.proxmox.com/git/pve-guest-common.git synced 2024-12-24 21:34:13 +03:00

replication: purge states: verify the vmlist

Instead of clearing out the local state if the last
cfs_update failed.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2017-10-11 14:24:58 +02:00 committed by Fabian Grünbichler
parent aa0d516fc5
commit 81228d280f

View File

@ -197,6 +197,7 @@ sub purge_old_states {
my $local_node = PVE::INotify::nodename();
my $cfg = PVE::ReplicationConfig->new();
PVE::Cluster::cfs_update(1); # fail if we cannot query the vm list
my $vms = PVE::Cluster::get_vmlist();
my $used_tids = {};