From 19cc1fa99cb0f02fd81b430eb7cce0a55b08d6e5 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Wed, 11 Nov 2009 14:27:21 +0000 Subject: performance/quick-read: set return value to zero after successful init. Signed-off-by: Raghavendra G Signed-off-by: Anand V. Avati BUG: 374 (quick read fails to initialize if no options are given) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=374 --- xlators/performance/quick-read/src/quick-read.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xlators/performance/quick-read/src/quick-read.c b/xlators/performance/quick-read/src/quick-read.c index 03c917da3..a8b6ecbe7 100644 --- a/xlators/performance/quick-read/src/quick-read.c +++ b/xlators/performance/quick-read/src/quick-read.c @@ -2266,6 +2266,8 @@ init (xlator_t *this) } } + ret = 0; + this->private = conf; out: if ((ret == -1) && conf) { -- cgit