diff options
Diffstat (limited to 'xlators/cluster/dht/src/dht-rebalance.c')
-rw-r--r-- | xlators/cluster/dht/src/dht-rebalance.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/xlators/cluster/dht/src/dht-rebalance.c b/xlators/cluster/dht/src/dht-rebalance.c index 88c84dd37..d2a59cc43 100644 --- a/xlators/cluster/dht/src/dht-rebalance.c +++ b/xlators/cluster/dht/src/dht-rebalance.c @@ -1427,11 +1427,16 @@ gf_defrag_start_crawl (void *data) dict_t *fix_layout = NULL; dict_t *migrate_data = NULL; dict_t *status = NULL; + glusterfs_ctx_t *ctx = NULL; this = data; if (!this) goto out; + ctx = glusterfs_ctx_get (); + if (!ctx) + goto out; + conf = this->private; if (!conf) goto out; @@ -1505,7 +1510,8 @@ out: { status = dict_new (); gf_defrag_status_get (defrag, status); - glusterfs_rebalance_event_notify (status); + if (ctx->notify) + ctx->notify (GF_EN_DEFRAG_STATUS, status); if (status) dict_unref (status); defrag->is_exiting = 1; |