diff options
author | Edward Rudd | 2009-03-23 14:22:54 +0000 |
---|---|---|
committer | Edward Rudd | 2009-03-23 14:22:54 +0000 |
commit | dae987d0b361cdce4402b79a05210c6050c67f22 (patch) | |
tree | 5095401b45e4e3c8c37929af119bbaaba74b4b44 /utility | |
parent | 6a4d9bbe760de40b60634c46c0dc6f3c310b819f (diff) |
change threadcount so 0 means single threaded
Diffstat (limited to 'utility')
-rw-r--r-- | utility/config.c | 2 | ||||
-rw-r--r-- | utility/mod_log_sql.conf | 2 | ||||
-rw-r--r-- | 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) | |||
406 | cfg->loglevel = LOGLEVEL_ERROR; | 406 | cfg->loglevel = LOGLEVEL_ERROR; |
407 | cfg->summary = 1; | 407 | cfg->summary = 1; |
408 | cfg->transactions = 1; | 408 | cfg->transactions = 1; |
409 | cfg->thread_count = 1; // default one thread (aka non-threaded) | 409 | cfg->thread_count = 0; // default zero thread (aka non-threaded) |
410 | cfg->split_count = 4; | 410 | cfg->split_count = 4; |
411 | cfg->split_minimum = 10000; | 411 | cfg->split_minimum = 10000; |
412 | cfg->split_maximum = 50000; | 412 | 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 | |||
16 | SplitMaxLines 50000 | 16 | SplitMaxLines 50000 |
17 | SplitDirectory ./split_temp | 17 | SplitDirectory ./split_temp |
18 | 18 | ||
19 | #ThreadCount 1 | 19 | #ThreadCount 0 |
20 | 20 | ||
21 | BadLineFile ./badlines.log | 21 | BadLineFile ./badlines.log |
22 | BadLineMax 10 | 22 | 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[]) | |||
223 | if (!apr_is_empty_array(cfg->input_files)) { | 223 | if (!apr_is_empty_array(cfg->input_files)) { |
224 | parser_split_logs(cfg); | 224 | parser_split_logs(cfg); |
225 | #if APR_HAS_THREADS | 225 | #if APR_HAS_THREADS |
226 | if (cfg->thread_count > 1) { | 226 | if (cfg->thread_count > 0) { |
227 | run_multithreaded(cfg); | 227 | run_multithreaded(cfg); |
228 | } else { | 228 | } else { |
229 | #endif | 229 | #endif |