[pve-devel] applied: [PATCH pve-manager] PVE/API2/Replication.pm: call purge_old_states in run_jobs

Wolfgang Bumiller w.bumiller at proxmox.com
Tue Jun 27 15:50:23 CEST 2017


applied,
correctly cleaned out all my old leftover garbage states

On Tue, Jun 27, 2017 at 11:03:06AM +0200, Dietmar Maurer wrote:
> Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
> ---
>  PVE/API2/Replication.pm | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/PVE/API2/Replication.pm b/PVE/API2/Replication.pm
> index ddfc2d0e..997d1cd3 100644
> --- a/PVE/API2/Replication.pm
> +++ b/PVE/API2/Replication.pm
> @@ -81,6 +81,8 @@ sub run_jobs {
>      my $code = sub {
>         my $start_time = $now // time();
>  
> +       PVE::ReplicationState::purge_old_states();
> +
>         while (my $jobcfg = PVE::ReplicationState::get_next_job($iteration, $start_time)) {
>             my $guest_class = $lookup_guest_class->($jobcfg->{vmtype});
>             PVE::Replication::run_replication($guest_class, $jobcfg, $iteration, $start_time, $logfunc, 1, $verbose);
> -- 
> 2.11.0




More information about the pve-devel mailing list