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>
This commit is contained in:
Krishnan Parthasarathi 2011-10-13 17:52:44 +05:30 committed by Vijay Bellur
parent c59dd30a13
commit e1fda0971d

View File

@ -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);