diff options
author | Krishnan Parthasarathi <kp@gluster.com> | 2011-10-13 17:52:44 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2011-10-19 03:20:19 -0700 |
commit | e1fda0971decffeddbaa0a4491270d991d83359c (patch) | |
tree | 1bae9cefadcc37f9ef5af5af7e56ce64eb5fbfd1 /xlators/cluster/afr | |
parent | c59dd30a13993b1988132de168f4f152757ff420 (diff) |
pump: status shouldn't be cleared until migration is complete during commit.
Clearing pump status on migration complete is futile because we would be
'replacing' src brick with destination brick in the volume anyway.
Change-Id: Ib12fee84bd5445c4a20dac1cf10555331d7b8ebd
BUG: 3653
Reviewed-on: http://review.gluster.com/585
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators/cluster/afr')
-rw-r--r-- | xlators/cluster/afr/src/pump.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/xlators/cluster/afr/src/pump.c b/xlators/cluster/afr/src/pump.c index dbf86b0a2..4d5d9ec44 100644 --- a/xlators/cluster/afr/src/pump.c +++ b/xlators/cluster/afr/src/pump.c @@ -1085,14 +1085,6 @@ pump_execute_commit (call_frame_t *frame, xlator_t *this) pump_priv = priv->pump_private; local = frame->local; - - LOCK (&pump_priv->resume_path_lock); - { - pump_priv->number_files_pumped = 0; - pump_priv->current_file[0] = '\0'; - } - UNLOCK (&pump_priv->resume_path_lock); - local->op_ret = 0; if (pump_priv->pump_finished) { pump_change_state (this, PUMP_STATE_COMMIT); |