From adebbb2ba19e52b194a4050c2e43a6c92f19c605 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Wed, 11 Nov 2009 14:26:10 +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(+) (limited to 'xlators/performance/quick-read') diff --git a/xlators/performance/quick-read/src/quick-read.c b/xlators/performance/quick-read/src/quick-read.c index 5c6bfc9c3be..2f9e9664b5a 100644 --- a/xlators/performance/quick-read/src/quick-read.c +++ b/xlators/performance/quick-read/src/quick-read.c @@ -2214,6 +2214,8 @@ init (xlator_t *this) } } + ret = 0; + this->private = conf; out: if ((ret == -1) && conf) { -- cgit