summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2009-11-11 14:27:21 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-11-13 02:13:57 -0800
commit19cc1fa99cb0f02fd81b430eb7cce0a55b08d6e5 (patch)
treeb4b8b089752f3054aca0c26e0e3b330620f02b8f /xlators
parent1a53a5a4bf069e28ed6cbf6bba2b3ed14d20eb86 (diff)
performance/quick-read: set return value to zero after successful init.
Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> 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
Diffstat (limited to 'xlators')
-rw-r--r--xlators/performance/quick-read/src/quick-read.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/performance/quick-read/src/quick-read.c b/xlators/performance/quick-read/src/quick-read.c
index 03c917da366..a8b6ecbe73f 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) {