diff options
author | shishir gowda <shishirng@gluster.com> | 2012-04-18 12:16:51 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2012-04-18 09:30:41 -0700 |
commit | c0eec503b78949bd1785e5bf2533db211f3d256c (patch) | |
tree | f63f119b8e2c78eca003fb92fd50a025167e3ded | |
parent | 7522df3b98467c2ddfb9cc12f5c807d4408267cc (diff) |
glusterd/rebalance: Start process with xlator option client-pid -3
This would prevent updation of xtime by the marker.
Set frame->root->pid while creating sync-task. Removing the command
option, as it is in-effective
Change-Id: Ifaa587df67a72ec0571c7d0043de8048e2be12a8
BUG: 812287
Signed-off-by: shishir gowda <shishirng@gluster.com>
Reviewed-on: http://review.gluster.com/3180
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Amar Tumballi <amarts@redhat.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
-rw-r--r-- | xlators/cluster/dht/src/dht-rebalance.c | 2 | ||||
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-rebalance.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xlators/cluster/dht/src/dht-rebalance.c b/xlators/cluster/dht/src/dht-rebalance.c index 4c2b4a035..8b32b3f69 100644 --- a/xlators/cluster/dht/src/dht-rebalance.c +++ b/xlators/cluster/dht/src/dht-rebalance.c @@ -1527,6 +1527,8 @@ gf_defrag_start (void *data) if (!frame) goto out; + frame->root->pid = GF_CLIENT_PID_DEFRAG; + defrag->pid = frame->root->pid; defrag->defrag_status = GF_DEFRAG_STATUS_STARTED; diff --git a/xlators/mgmt/glusterd/src/glusterd-rebalance.c b/xlators/mgmt/glusterd/src/glusterd-rebalance.c index 9bee4ba20..fddf6699f 100644 --- a/xlators/mgmt/glusterd/src/glusterd-rebalance.c +++ b/xlators/mgmt/glusterd/src/glusterd-rebalance.c @@ -344,8 +344,6 @@ glusterd_handle_defrag_start (glusterd_volinfo_t *volinfo, char *op_errstr, runner_argprintf (&runner, "%s",pidfile); runner_add_arg (&runner, "-l"); runner_argprintf (&runner, logfile); - runner_add_arg (&runner, "--client-pid"); - runner_argprintf (&runner, "%d", GF_CLIENT_PID_DEFRAG); if (volinfo->memory_accounting) runner_add_arg (&runner, "--mem-accounting"); |