summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2010-12-08 23:20:14 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-12-12 20:07:33 -0800
commit625fb341b14acc704c588344ab5390c05b387179 (patch)
treed540c5b7ad32fcabc125201734ce709ff8a21b73 /xlators
parent9d4ba49cd3f8055d4305d85c6149311e36d78bdd (diff)
set the return value to -1 intitially which may be returned as success in validate_or_goto
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1235 (Bug for all pump/migrate commits) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1235
Diffstat (limited to 'xlators')
-rw-r--r--xlators/cluster/afr/src/afr-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-common.c b/xlators/cluster/afr/src/afr-common.c
index 4fb33a565d7..b9f3692629f 100644
--- a/xlators/cluster/afr/src/afr-common.c
+++ b/xlators/cluster/afr/src/afr-common.c
@@ -1137,7 +1137,7 @@ afr_fd_ctx_set (xlator_t *this, fd_t *fd)
{
afr_private_t * priv = NULL;
- int ret = 0;
+ int ret = -1;
uint64_t ctx;
afr_fd_ctx_t * fd_ctx = NULL;