Patchwork [BUG:2084] cluster/pump: Reset saved path upon pump completion

login
register
Submitter Vijay Bellur
Date 2010-11-14 17:37:30
Message ID <20101114173730.GA15662@dev.gluster.com>
Download mbox | patch
Permalink /patch/5690/
State Accepted
Headers show

Comments

Vijay Bellur - 2010-11-14 17:37:30
Signed-off-by: Vijay Bellur <vijay@gluster.com>
---
 xlators/cluster/afr/src/pump.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/xlators/cluster/afr/src/pump.c b/xlators/cluster/afr/src/pump.c
index a162d3f..e984d65 100644
--- a/xlators/cluster/afr/src/pump.c
+++ b/xlators/cluster/afr/src/pump.c
@@ -614,6 +614,8 @@  pump_complete_migration (xlator_t *this)
                         gf_log (this->name, GF_LOG_DEBUG,
                                 "setxattr failed - while notifying sink complete");
                 }
+
+                pump_save_path (this, "/");
         }
 
         return 0;