Delay retention check until agent has initialized (#17850)
* Retention timer may be triggered when localhost is not yet created if initialization takes a long time * Proper restore retention timer every 60 seconds
Stelios Fragkakis committed
Jun 10, 2024 at 00:11 UTC
c70c2f9e83863b834ef178550e5b3fd839e5699b
1 file changed
+3
src/database/engine/rrdengine.c
+3
@@ -1644,6 +1644,9 @@ bool rrdeng_ctx_tier_cap_exceeded(struct rrdengine_instance *ctx)
1644
1645
void retention_timer_cb(uv_timer_t *handle)
1646
{
1647
+ if (!localhost)
1648
+ return;
1649
+
1650
worker_is_busy(RRDENG_TIMER_CB);
1651
uv_stop(handle->loop);
1652
uv_update_time(handle->loop);