]> git.proxmox.com Git - pmg-api.git/commitdiff
PMG::Cluster::sync_statistic_db - correctyl update clusterinfo lastid_CStatistic
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 30 Jan 2018 06:47:51 +0000 (07:47 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 30 Jan 2018 06:47:51 +0000 (07:47 +0100)
PMG/Cluster.pm

index 856c6f81dcc8ca9081b63d249727030f920afdaf..85179846669c643063aff655e9575142afe60ef8 100644 (file)
@@ -676,10 +676,10 @@ sub sync_statistic_db {
 
                $attrs = [qw(cstatistic_cid cstatistic_rid blocked receiver)];
                PMG::DBTools::copy_selected_data($ldb, $sth, 'CReceivers', $attrs);
-
-               PMG::DBTools::write_maxint_clusterinfo ($ldb, $rcid, 'lastid_CStatistic', $maxid);
            }
 
+           PMG::DBTools::write_maxint_clusterinfo ($ldb, $rcid, 'lastid_CStatistic', $maxid);
+
            $ldb->commit;
        };
        if (my $err = $@) {