summaryrefslogtreecommitdiffstats
path: root/database/rrdhost.c
diff options
context:
space:
mode:
authorStelios Fragkakis <52996999+stelfrag@users.noreply.github.com>2022-05-10 13:33:54 +0300
committerGitHub <noreply@github.com>2022-05-10 13:33:54 +0300
commit6ad3e612e04cb8ad47839d71d4e9118c5498b907 (patch)
treed5edf225ec1a80fac970f03876cce235d3152dbd /database/rrdhost.c
parent88559a49b3309755c15d29af793e8a8a5b3bc11d (diff)
Initialize the metadata database when performing dbengine stress test (#12861)
* Remove error (no real value) * Add a parameter to create an in-memory database for stress testing * Add a new parameter to the stresstest command to set the number of deisred libuv worker threads
Diffstat (limited to 'database/rrdhost.c')
-rw-r--r--database/rrdhost.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/database/rrdhost.c b/database/rrdhost.c
index 45ee2d08d8..be18faf2ce 100644
--- a/database/rrdhost.c
+++ b/database/rrdhost.c
@@ -698,7 +698,7 @@ int rrd_init(char *hostname, struct rrdhost_system_info *system_info) {
if (gap_when_lost_iterations_above < 1)
gap_when_lost_iterations_above = 1;
- if (unlikely(sql_init_database(DB_CHECK_NONE))) {
+ if (unlikely(sql_init_database(DB_CHECK_NONE, 0))) {
if (default_rrd_memory_mode == RRD_MEMORY_MODE_DBENGINE)
fatal("Failed to initialize SQLite");
info("Skipping SQLITE metadata initialization since memory mode is not db engine");