fix: check memory mode before creating dbengine retention chart (#17848)
Ilya Mashchenko committed
Jun 9, 2024 at 22:06 UTC
c1253154935bdc56cdd6217e6516c3f86ad93f88
1 file changed
+2
-1
src/daemon/service.c
+2
-1
@@ -315,7 +315,8 @@ void *service_main(void *ptr)
315
real_step = USEC_PER_SEC;
316
317
#ifdef ENABLE_DBENGINE
318
- dbengine_retention_statistics();
318
+ if (default_rrd_memory_mode == RRD_MEMORY_MODE_DBENGINE)
319
+ dbengine_retention_statistics();
320
#endif
321
322
svc_rrd_cleanup_obsolete_charts_from_all_hosts();