diff options
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-op-sm.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c index e9f261c2fb3..5fc47673867 100644 --- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c +++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c @@ -4343,8 +4343,10 @@ glusterd_op_volume_dict_uuid_to_hostname (dict_t *dict, const char *key_fmt, memset (key, 0, sizeof (key)); snprintf (key, sizeof (key), key_fmt, i); ret = dict_get_str (dict, key, &uuid_str); - if (ret) + if (ret) { + ret = 0; continue; + } gf_msg_debug (this->name, 0, "Got uuid %s", uuid_str); @@ -4353,8 +4355,10 @@ glusterd_op_volume_dict_uuid_to_hostname (dict_t *dict, const char *key_fmt, /* if parsing fails don't error out * let the original value be retained */ - if (ret) + if (ret) { + ret = 0; continue; + } hostname = glusterd_uuid_to_hostname (uuid); if (hostname) { |