summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPranith Kumar K <pranithk@gluster.com>2011-04-22 11:55:58 +0000
committerAnand Avati <avati@gluster.com>2011-04-22 10:36:31 -0700
commit28cea0ebbd4ce4cd64e1da4e43512230a0050ee9 (patch)
tree1a0b0d42cbc7225ff695bfec373ef0e8d2c3cf6c
parent625f779dba824d40626473cd85aaacdefbfae1ce (diff)
mgmt/glusterd: Fix ret value in importing of options/gsync slaves
In case the volume options or gsync slaves are absent the import should succeed. Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 2832 (peer probe hangs) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2832
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index 88f9754bd7d..ad2b7dde893 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -1593,7 +1593,7 @@ import_prdict_volinfo_dict (dict_t *vols, dict_t *dst_dict, char *key_prefix,
char *value_prefix, int opt_count, int count)
{
char key[512] = {0,};
- int32_t ret = -1;
+ int32_t ret = 0;
int i = 1;
char *opt_key = NULL;
char *opt_val = NULL;