path: root/xlators/mgmt/glusterd/src/glusterd-rebalance.c
diff options
authorAtin Mukherjee <>2016-07-26 16:01:56 +0530
committerAtin Mukherjee <>2016-08-22 06:10:44 -0700
commitca18f4bccd090e98ee5342ca05d3c0f9f94e9e2c (patch)
tree4ea51c5424f1b0d927292c8b51177da99d1cd213 /xlators/mgmt/glusterd/src/glusterd-rebalance.c
parentfcb5b70b1099d0379b40c81f35750df8bb9545a5 (diff)
glusterd: Add async events
As the eventing framework is already in the code, this patch targets to capture all the async glusterd events which are important to be notified to the higher layers which consume the eventing framework. I plan to break this work into two different patches where this patch set covers the first set of events. Change-Id: Ie1bd4f6fa84117b26ccb4c75bc4dc68e6ef19134 BUG: 1360809 Signed-off-by: Atin Mukherjee <> Reviewed-on: Smoke: Gluster Build System <> NetBSD-regression: NetBSD Build System <> CentOS-regression: Gluster Build System <> Reviewed-by: Rohan Kanade <> Reviewed-by: Samikshan Bairagya <>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-rebalance.c')
1 files changed, 4 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-rebalance.c b/xlators/mgmt/glusterd/src/glusterd-rebalance.c
index 35fa462..86e21f3 100644
--- a/xlators/mgmt/glusterd/src/glusterd-rebalance.c
+++ b/xlators/mgmt/glusterd/src/glusterd-rebalance.c
@@ -1124,10 +1124,13 @@ glusterd_defrag_event_notify_handle (dict_t *dict)
ret = glusterd_defrag_volume_status_update (volinfo, dict);
- if (ret)
+ if (ret) {
gf_msg (this->name, GF_LOG_ERROR, 0,
"Failed to update status");
+ gf_event (EVENT_DEFRAG_STATUS_UPDATE_FAILED, "volume=%s",
+ volinfo->volname);
+ }
return ret;