]> git.proxmox.com Git - pve-ha-manager.git/commitdiff
get_pve_lock: avoid unnecessary test if $last_lock_time is zero
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 16 Nov 2016 15:24:58 +0000 (16:24 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 16 Nov 2016 15:24:58 +0000 (16:24 +0100)
This is just a cleanup.

src/PVE/HA/Env/PVE2.pm

index 2e6b1561a2f4dee6dbd7b114c63eb877c5cfb50c..48445e04283ece4da7692a64828f7fa266f375f4 100644 (file)
@@ -237,7 +237,7 @@ sub get_pve_lock {
            return;
        }
 
-       if ($last_lock_time && (($ctime - $last_lock_time) < $retry_timeout)) {
+       if (($ctime - $last_lock_time) < $retry_timeout) {
            die "cfs lock update failed - $!\n";
        }