From 58cedad283af2005f7f4969f7ac50a8e937e5594 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Mon, 13 Sep 2010 03:41:08 +0000 Subject: io-threads: return -1 in case of 'init()' failures Signed-off-by: Amar Tumballi Signed-off-by: Vijay Bellur BUG: 1591 (glusterfs server crashes with another translator inserted into volume chain) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1591 --- xlators/performance/io-threads/src/io-threads.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xlators/performance/io-threads/src/io-threads.c b/xlators/performance/io-threads/src/io-threads.c index e2a00fcfadc..e31bd4bba20 100644 --- a/xlators/performance/io-threads/src/io-threads.c +++ b/xlators/performance/io-threads/src/io-threads.c @@ -2089,7 +2089,7 @@ init (xlator_t *this) dict_t *options = this->options; int thread_count = IOT_DEFAULT_THREADS; int idle_time = IOT_DEFAULT_IDLE; - int ret = 0; + int ret = -1; if (!this->children || this->children->next) { gf_log ("io-threads", GF_LOG_ERROR, -- cgit