From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id E8B611FF0B6 for ; Thu, 12 Nov 2026 17:32:53 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 9DAB22172F; Thu, 12 Nov 2026 17:32:14 +0100 (CET) From: Daniel Kral To: pve-devel@lists.proxmox.com Subject: [PATCH ha-manager v2 09/16] lrm: rename update_lrm_status to flush_lrm_status Date: Thu, 12 Nov 2026 17:31:08 +0100 Message-ID: <20261112163113.294302-12-d.kral@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261112163113.294302-3-d.kral@proxmox.com> References: <20261112163113.294302-3-d.kral@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1794501128003 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.633 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: TFLK3HYQ24WGXI4IINTBWL6U46CVSW6R X-Message-ID-Hash: TFLK3HYQ24WGXI4IINTBWL6U46CVSW6R X-MailFrom: d.kral@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Make the method name similar to PVE::HA::Manager::flush_manager_status as the term "flush" is more telling about the method writing something out than the term "update" which could be an update in any direction. Signed-off-by: Daniel Kral --- src/PVE/HA/LRM.pm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/PVE/HA/LRM.pm b/src/PVE/HA/LRM.pm index 9c452946..8cc2e57c 100644 --- a/src/PVE/HA/LRM.pm +++ b/src/PVE/HA/LRM.pm @@ -149,7 +149,7 @@ sub shutdown_request { $self->{shutdown_request} = $haenv->get_time(); - eval { $self->update_lrm_status() or die "not quorate?\n"; }; + eval { $self->flush_lrm_status() or die "not quorate?\n"; }; if (my $err = $@) { $haenv->log('err', "unable to update lrm status file - $err"); } @@ -180,7 +180,7 @@ sub set_local_status { $self->{status} = $new; } -sub update_lrm_status { +sub flush_lrm_status { my ($self) = @_; my $haenv = $self->{haenv}; @@ -359,7 +359,7 @@ sub work { my $haenv = $self->{haenv}; if (!$wrote_lrm_status_at_startup) { - if ($self->update_lrm_status()) { + if ($self->flush_lrm_status()) { $wrote_lrm_status_at_startup = 1; } else { # do nothing @@ -484,7 +484,7 @@ sub work { return 0 if $self->{shutdown_request}; - $self->update_lrm_status(); + $self->flush_lrm_status(); $haenv->sleep(5); @@ -552,7 +552,7 @@ sub work { $haenv->log('err', "got unexpected error - $err"); } - $self->update_lrm_status(); + $self->flush_lrm_status(); return 0 if $shutdown; @@ -622,7 +622,7 @@ sub work { $self->manage_resources() if !$exit_lrm; - $self->update_lrm_status(); + $self->flush_lrm_status(); return 0 if $exit_lrm; -- 2.47.3