summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/pump.c
diff options
context:
space:
mode:
authorKrishnan Parthasarathi <kp@gluster.com>2011-10-13 17:52:44 +0530
committerVijay Bellur <vijay@gluster.com>2011-10-19 03:20:19 -0700
commite1fda0971decffeddbaa0a4491270d991d83359c (patch)
tree1bae9cefadcc37f9ef5af5af7e56ce64eb5fbfd1 /xlators/cluster/afr/src/pump.c
parentc59dd30a13993b1988132de168f4f152757ff420 (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/src/pump.c')
-rw-r--r--xlators/cluster/afr/src/pump.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/xlators/cluster/afr/src/pump.c b/xlators/cluster/afr/src/pump.c
index dbf86b0a2a6..4d5d9ec44c6 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);