diff options
author | Mohammed Rafi KC <rkavunga@redhat.com> | 2015-05-15 16:03:00 +0530 |
---|---|---|
committer | Kaushal M <kaushal@redhat.com> | 2015-05-28 07:03:19 -0700 |
commit | ffc15b7ef0631b571be00cdb7d091cac84e314f5 (patch) | |
tree | 4cd8bd859525120a811443f3b125bd5de4914911 /xlators/cluster/dht/src/tier.c | |
parent | 05566baee6b5f0b2a3b083def4fe9bbdd0f63551 (diff) |
tiering/rebalance: Use separate pid/socket file for tiering
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
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 7f0affc66e0..b575da0b8f0 100644 --- a/xlators/cluster/dht/src/tier.c +++ b/xlators/cluster/dht/src/tier.c @@ -821,8 +821,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"); |