diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-09-04 08:57:43 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-09-04 08:57:43 +0000 |
commit | 42ad44d1fea072d23f2e0067bca4ba6bc0b2a523 (patch) | |
tree | b1c1459c6914f1d4c5b123b601b9dbecb049360c /database/rrdhost.c | |
parent | Adding upstream version 1.42.1. (diff) | |
download | netdata-42ad44d1fea072d23f2e0067bca4ba6bc0b2a523.tar.xz netdata-42ad44d1fea072d23f2e0067bca4ba6bc0b2a523.zip |
Adding upstream version 1.42.2.upstream/1.42.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | database/rrdhost.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/database/rrdhost.c b/database/rrdhost.c index 235d64b1e..bec821ccc 100644 --- a/database/rrdhost.c +++ b/database/rrdhost.c @@ -509,7 +509,8 @@ int is_legacy = 1; if(t != host) { netdata_log_error("Host '%s': cannot add host with machine guid '%s' to index. It already exists as host '%s' with machine guid '%s'.", rrdhost_hostname(host), host->machine_guid, rrdhost_hostname(t), t->machine_guid); - rrdhost_free___while_having_rrd_wrlock(host, true); + if (!is_localhost) + rrdhost_free___while_having_rrd_wrlock(host, true); rrd_unlock(); return NULL; } |