]> git.proxmox.com Git - pve-guest-common.git/commit
ReplicationState: deterministically order replication jobs
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 3 Jun 2022 07:16:30 +0000 (09:16 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 8 Jun 2022 06:48:04 +0000 (08:48 +0200)
commitf1fc7d6c613b7d0f89304485764de06247275717
tree7f88df8562f6a60c95d10e3c613bb8ec2954ee80
parent1aa4d844a1699d4f8541d45dae513f21c8907ed7
ReplicationState: deterministically order replication jobs

if we have multiple jobs for the same vmid with the same schedule,
the last_sync, next_sync and vmid will always be the same, so the order
depends on the order of the $jobs hash (which is random; thanks perl)

to have a fixed order, take the jobid also into consideration

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Fabian Ebner <f.ebner@proxmox.com>
src/PVE/ReplicationState.pm