From dae987d0b361cdce4402b79a05210c6050c67f22 Mon Sep 17 00:00:00 2001 From: Edward Rudd Date: Mon, 23 Mar 2009 14:22:54 +0000 Subject: change threadcount so 0 means single threaded --- utility/config.c | 2 +- utility/mod_log_sql.conf | 2 +- utility/shell.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/utility/config.c b/utility/config.c index b1ba4fa..6867476 100644 --- a/utility/config.c +++ b/utility/config.c @@ -406,7 +406,7 @@ config_t *config_create(apr_pool_t *p) cfg->loglevel = LOGLEVEL_ERROR; cfg->summary = 1; cfg->transactions = 1; - cfg->thread_count = 1; // default one thread (aka non-threaded) + cfg->thread_count = 0; // default zero thread (aka non-threaded) cfg->split_count = 4; cfg->split_minimum = 10000; cfg->split_maximum = 50000; diff --git a/utility/mod_log_sql.conf b/utility/mod_log_sql.conf index 92d567c..911fc18 100644 --- a/utility/mod_log_sql.conf +++ b/utility/mod_log_sql.conf @@ -16,7 +16,7 @@ SplitMinLines 0 SplitMaxLines 50000 SplitDirectory ./split_temp -#ThreadCount 1 +#ThreadCount 0 BadLineFile ./badlines.log BadLineMax 10 diff --git a/utility/shell.c b/utility/shell.c index 78ab1b7..1b9e890 100644 --- a/utility/shell.c +++ b/utility/shell.c @@ -223,7 +223,7 @@ int main(int argc, const char *const argv[]) if (!apr_is_empty_array(cfg->input_files)) { parser_split_logs(cfg); #if APR_HAS_THREADS - if (cfg->thread_count > 1) { + if (cfg->thread_count > 0) { run_multithreaded(cfg); } else { #endif -- cgit