diff options
author | Krishnan Parthasarathi <kparthas@redhat.com> | 2013-12-23 14:07:47 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2013-12-23 06:56:45 -0800 |
commit | 48fb488818f82d5889a84ca36f489674c8557354 (patch) | |
tree | 443f8be0badb9f3786628e92b225cd6420d557e2 /xlators/cluster/dht/src/dht-common.c | |
parent | 9d592246d6121aa38cd6fb6a875be4473d4979c8 (diff) |
dht: Set status to FAILED when rebalance stops due to brick going down
Backport of http://review.gluster.org/6435
Change-Id: I98da41342127b1690d887a5bc025e4c9dd504894
BUG: 1038452
Signed-off-by: Krishnan Parthasarathi <kparthas@redhat.com>
Reviewed-on: http://review.gluster.org/6563
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/cluster/dht/src/dht-common.c')
-rw-r--r-- | xlators/cluster/dht/src/dht-common.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index 110e3eebb5b..898f41f0ef8 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -5078,7 +5078,8 @@ dht_notify (xlator_t *this, int event, void *data, ...) gf_log (this->name, GF_LOG_WARNING, "Received CHILD_DOWN. Exiting"); if (conf->defrag) { - gf_defrag_stop (conf->defrag, NULL); + gf_defrag_stop (conf->defrag, + GF_DEFRAG_STATUS_FAILED, NULL); } else { kill (getpid(), SIGTERM); } @@ -5154,7 +5155,8 @@ dht_notify (xlator_t *this, int event, void *data, ...) if (cmd == GF_DEFRAG_CMD_STATUS) gf_defrag_status_get (defrag, output); else if (cmd == GF_DEFRAG_CMD_STOP) - gf_defrag_stop (defrag, output); + gf_defrag_stop (defrag, + GF_DEFRAG_STATUS_STOPPED, output); } unlock: UNLOCK (&defrag->lock); |