@cryptotaxi247 / netdata-1 / commits / df034fad7

Remove retention check during datafile initialization (#21387)

Stelios Fragkakis committed Dec 3, 2025 at 02:04 UTC df034fad70615d4b2825db49cd81b2aa2d49ee6c
1 file changed -9
src/database/engine/datafile.c
-9
@@ -604,15 +604,6 @@ int init_data_files(struct rrdengine_instance *ctx)
604 else {
605 if (ctx->loading.create_new_datafile_pair)
606 create_new_datafile_pair(ctx);
607 -
608 - while(rrdeng_ctx_tier_cap_exceeded(ctx)) {
609 - Word_t Index = 0;
610 - Pvoid_t *PValue = JudyLFirst(ctx->datafiles.JudyL, &Index, PJE0);
611 - if (PValue && *PValue) {
612 - struct rrdengine_datafile *datafile = *PValue;
613 - datafile_delete(ctx, datafile, false, true, false);
614 - }
615 - }
607 }
608
609 pgc_reset_hot_max(open_cache);