diff options
author | Mohammed Rafi KC <rkavunga@redhat.com> | 2015-05-15 16:03:00 +0530 |
---|---|---|
committer | Kaushal M <kaushal@redhat.com> | 2015-05-31 21:38:26 -0700 |
commit | 3ea46dca41d0a006576214b2d71a462ee6866c4d (patch) | |
tree | 0edc03c12c79c96e6237fb7b33584cea89270ee0 /xlators/cluster/dht/src/tier.c | |
parent | 151d01445eddb0bfbd46e13a79b2ed6d1779cc5e (diff) |
tiering/rebalance: Use separate pid/socket file for tiering
Back port of http://review.gluster.org/10792
When promotion/demotion daemon starts, it uses the same pidfile
as rebalance. This patch will introduce a different pid file
for the same.
>Change-Id: Ic484c53f51e00ae6b2d697748a9600b14829e23b
>BUG: 1221970
>Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
>Reviewed-on: http://review.gluster.org/10792
>Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
>Tested-by: Gluster Build System <jenkins@build.gluster.com>
>Tested-by: NetBSD Build System
Change-Id: Idda13e983ffd443672aee0873ee51e8cc7089c49
BUG: 1221969
Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
Reviewed-on: http://review.gluster.org/10980
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Joseph Fernandes
Reviewed-by: Kaushal M <kaushal@redhat.com>
Diffstat (limited to 'xlators/cluster/dht/src/tier.c')
-rw-r--r-- | xlators/cluster/dht/src/tier.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/cluster/dht/src/tier.c b/xlators/cluster/dht/src/tier.c index bf481601bd8..dca6c3686a6 100644 --- a/xlators/cluster/dht/src/tier.c +++ b/xlators/cluster/dht/src/tier.c @@ -819,8 +819,9 @@ tier_start (xlator_t *this, gf_defrag_info_t *defrag) } if (defrag->cmd == GF_DEFRAG_CMD_START_DETACH_TIER) { - ret = 1; - gf_msg (this->name, GF_LOG_ERROR, 0, + ret = 0; + defrag->defrag_status = GF_DEFRAG_STATUS_COMPLETE; + gf_msg (this->name, GF_LOG_DEBUG, 0, DHT_MSG_LOG_TIER_ERROR, "defrag->defrag_cmd == " "GF_DEFRAG_CMD_START_DETACH_TIER"); |