Skip to content

Commit

Permalink
fix nodes staying in initializing status (netdata#19398)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsaou authored Jan 14, 2025
1 parent 7553d19 commit d24de58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database/contexts/worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static void rrdhost_update_cached_retention(RRDHOST *host, time_t first_time_s,
host->retention.last_time_s = last_time_s;
}
else {
if(!host->retention.first_time_s || first_time_s < host->retention.first_time_s)
if(!host->retention.first_time_s || (first_time_s && first_time_s < host->retention.first_time_s))
host->retention.first_time_s = first_time_s;

if(!host->retention.last_time_s || last_time_s > host->retention.last_time_s)
Expand Down

0 comments on commit d24de58

Please sign in to comment.