mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-09 12:19:11 +00:00
ceph services: return early if versions stayed the same
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
8a3a300b8e
commit
656667dbd2
@ -51,6 +51,13 @@ sub broadcast_ceph_versions {
|
|||||||
my ($version, $buildcommit, $vers_parts) = PVE::Ceph::Tools::get_local_version(1);
|
my ($version, $buildcommit, $vers_parts) = PVE::Ceph::Tools::get_local_version(1);
|
||||||
|
|
||||||
if ($version) {
|
if ($version) {
|
||||||
|
if (my $old = PVE::Cluster::get_node_kv("ceph-versions")) {
|
||||||
|
$old = eval { decode_json($old) };
|
||||||
|
warn $@ if $@; # should not happen
|
||||||
|
if (defined($old) && $old->{buildcommit} eq $buildcommit && $old->{str} eq $version) {
|
||||||
|
return; # up to date, nothing to do so avoid (not exactly cheap) broadcast
|
||||||
|
}
|
||||||
|
}
|
||||||
my $node_versions = {
|
my $node_versions = {
|
||||||
version => {
|
version => {
|
||||||
str => $version,
|
str => $version,
|
||||||
|
Loading…
Reference in New Issue
Block a user