diff options
author | Amar Tumballi <amar@gluster.com> | 2010-09-13 03:41:08 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-09-13 06:45:02 -0700 |
commit | 58cedad283af2005f7f4969f7ac50a8e937e5594 (patch) | |
tree | 8266873ea488ee44164c1101b2851dee848d92bd /xlators | |
parent | a6a5b539bba3ce9ab82d6e137f2d961cde9546fe (diff) |
io-threads: return -1 in case of 'init()' failures
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
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
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/performance/io-threads/src/io-threads.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |