From e1fda0971decffeddbaa0a4491270d991d83359c Mon Sep 17 00:00:00 2001 From: Krishnan Parthasarathi Date: Thu, 13 Oct 2011 17:52:44 +0530 Subject: 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 Reviewed-by: Vijay Bellur --- xlators/cluster/afr/src/pump.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'xlators/cluster') 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); -- cgit