]> git.proxmox.com Git - pve-ha-manager.git/blobdiff - src/PVE/HA/CRM.pm
move cfs update to common code
[pve-ha-manager.git] / src / PVE / HA / CRM.pm
index 21a0acccb850078b82da8637f416595381db2e25..d149c58af69d84c8ab6c2909ac0bda03daec32fd 100644 (file)
@@ -28,6 +28,7 @@ sub new {
        haenv => $haenv,
        manager => undef,
        status => { state => 'startup' },
+       cluster_state_update => 0,
     }, $class;
 
     $self->set_local_status({ state => 'wait_for_quorum' });
@@ -146,6 +147,8 @@ sub do_one_iteration {
 
     $haenv->loop_start_hook();
 
+    $self->{cluster_state_update} = $haenv->cluster_state_update();
+
     my $res = $self->work();
 
     $haenv->loop_end_hook();
@@ -243,6 +246,7 @@ sub work {
                $shutdown = 1;
 
            } else {
+
                $manager->manage();
            }
        };