mirror of
git://git.proxmox.com/git/pve-guest-common.git
synced 2025-01-26 10:03:44 +03:00
fix previous commit
This commit is contained in:
parent
22ce136731
commit
40bcf6526b
@ -319,10 +319,12 @@ sub get_next_job {
|
|||||||
|
|
||||||
sub schedule_job_now {
|
sub schedule_job_now {
|
||||||
my ($jobcfg) = @_;
|
my ($jobcfg) = @_;
|
||||||
|
|
||||||
PVE::GuestHelpers::guest_migration_lock($jobcfg->{guest}, undef, sub {
|
PVE::GuestHelpers::guest_migration_lock($jobcfg->{guest}, undef, sub {
|
||||||
PVE::Tools::lock_file($state_lock, 10, sub {
|
PVE::Tools::lock_file($state_lock, 10, sub {
|
||||||
my $stateobj = read_state();
|
my $stateobj = read_state();
|
||||||
my $vmid = $jobcfg->{guest};
|
my $vmid = $jobcfg->{guest};
|
||||||
|
my $plugin = PVE::ReplicationConfig->lookup($jobcfg->{type});
|
||||||
my $tid = $plugin->get_unique_target_id($jobcfg);
|
my $tid = $plugin->get_unique_target_id($jobcfg);
|
||||||
# no not modify anything if there is no state
|
# no not modify anything if there is no state
|
||||||
return if !defined($stateobj->{$vmid}->{$tid});
|
return if !defined($stateobj->{$vmid}->{$tid});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user