diff options
-rw-r--r-- | database/sqlite/sqlite_aclk.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/database/sqlite/sqlite_aclk.c b/database/sqlite/sqlite_aclk.c index dca1ff793f..a5ad95a67a 100644 --- a/database/sqlite/sqlite_aclk.c +++ b/database/sqlite/sqlite_aclk.c @@ -287,6 +287,13 @@ static int create_host_callback(void *data, int argc, char **argv, char **column struct rrdhost_system_info *system_info = callocz(1, sizeof(struct rrdhost_system_info)); system_info->hops = str2i((const char *) argv[IDX_HOPS]); + RRD_MEMORY_MODE memory_mode; + +#ifdef ENABLE_DBENGINE + memory_mode = RRD_MEMORY_MODE_DBENGINE; +#else + memory_mode = RRD_MEMORY_MODE_RAM; +#endif sql_build_host_system_info((uuid_t *)argv[IDX_HOST_ID], system_info); @@ -303,7 +310,7 @@ static int create_host_callback(void *data, int argc, char **argv, char **column , (const char *) (argv[IDX_PROGRAM_VERSION] ? argv[IDX_PROGRAM_VERSION] : "unknown") , argv[3] ? str2i(argv[IDX_UPDATE_EVERY]) : 1 , argv[13] ? str2i(argv[IDX_ENTRIES]) : 0 - , RRD_MEMORY_MODE_DBENGINE + , memory_mode , 0 // health , 0 // rrdpush enabled , NULL //destination |