From 28cea0ebbd4ce4cd64e1da4e43512230a0050ee9 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Fri, 22 Apr 2011 11:55:58 +0000 Subject: 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 Signed-off-by: Anand Avati BUG: 2832 (peer probe hangs) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2832 --- xlators/mgmt/glusterd/src/glusterd-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index 88f9754bd..ad2b7dde8 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; -- cgit