diff options
author | Kaushik BV <kaushikbv@gluster.com> | 2010-08-12 01:57:04 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-08-12 00:45:53 -0700 |
commit | a6a2e3a86c0d4c0873e822a38769677df2050f11 (patch) | |
tree | d85aeef95d3408f872e2b55643df288a5a7398e4 /xlators/performance | |
parent | 78615ceea81479b38af43697766bcc04421a256d (diff) |
log added in case of invalid options provided for the io-threads volume
Signed-off-by: Kaushik BV <kaushikbv@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 1033 (io-threads doesn't log its options)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1033
Diffstat (limited to 'xlators/performance')
-rw-r--r-- | xlators/performance/io-threads/src/io-threads.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/xlators/performance/io-threads/src/io-threads.c b/xlators/performance/io-threads/src/io-threads.c index 0328d7411..3e65306ce 100644 --- a/xlators/performance/io-threads/src/io-threads.c +++ b/xlators/performance/io-threads/src/io-threads.c @@ -2113,11 +2113,18 @@ init (xlator_t *this) if (dict_get (options, "thread-count")) { thread_count = data_to_int32 (dict_get (options, "thread-count")); - if (thread_count < IOT_MIN_THREADS) + if (thread_count < IOT_MIN_THREADS) { + gf_log ("io-threads", GF_LOG_WARNING, + "Number of threads opted is less then min" + "threads allowed scaling it up to min"); thread_count = IOT_MIN_THREADS; - - if (thread_count > IOT_MAX_THREADS) + } + if (thread_count > IOT_MAX_THREADS) { + gf_log ("io-threads", GF_LOG_WARNING, + "Number of threads opted is more then max" + " threads allowed scaling it down to max"); thread_count = IOT_MAX_THREADS; + } } conf->max_count = thread_count; |