summaryrefslogtreecommitdiffstats
path: root/glusterfsd
diff options
context:
space:
mode:
Diffstat (limited to 'glusterfsd')
-rw-r--r--glusterfsd/src/glusterfsd-mgmt.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/glusterfsd/src/glusterfsd-mgmt.c b/glusterfsd/src/glusterfsd-mgmt.c
index 8b25f3a1525..f7b1f367f97 100644
--- a/glusterfsd/src/glusterfsd-mgmt.c
+++ b/glusterfsd/src/glusterfsd-mgmt.c
@@ -2359,11 +2359,15 @@ glusterfs_rebalance_event_notify (dict_t *dict)
if (dict) {
ret = dict_set_str (dict, "volname", cmd_args->volfile_id);
- if (ret)
+ if (ret) {
gf_log ("", GF_LOG_ERROR, "failed to set volname");
-
+ }
ret = dict_allocate_and_serialize (dict, &req.dict.dict_val,
&req.dict.dict_len);
+ if (ret) {
+ gf_log ("", GF_LOG_ERROR, "failed to serialize dict");
+ }
+
}
ret = mgmt_submit_request (&req, frame, ctx, &clnt_handshake_prog,
@@ -2372,7 +2376,6 @@ glusterfs_rebalance_event_notify (dict_t *dict)
(xdrproc_t)xdr_gf_event_notify_req);
GF_FREE (req.dict.dict_val);
-
return ret;
}