diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2024-06-09 22:06:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-09 22:06:44 +0300 |
commit | c1253154935bdc56cdd6217e6516c3f86ad93f88 (patch) | |
tree | 7733a05cd8e257786b5297424850cd6d441ce33a /src/daemon | |
parent | 0b0e5842c85fe63783120b3c165c824a88bd0d90 (diff) |
fix: check memory mode before creating dbengine retention chart (#17848)
Diffstat (limited to 'src/daemon')
-rw-r--r-- | src/daemon/service.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/daemon/service.c b/src/daemon/service.c index c6a17c518e..f46142dc73 100644 --- a/src/daemon/service.c +++ b/src/daemon/service.c @@ -315,7 +315,8 @@ void *service_main(void *ptr) real_step = USEC_PER_SEC; #ifdef ENABLE_DBENGINE - dbengine_retention_statistics(); + if (default_rrd_memory_mode == RRD_MEMORY_MODE_DBENGINE) + dbengine_retention_statistics(); #endif svc_rrd_cleanup_obsolete_charts_from_all_hosts(); |