From f0cdfd03051cee8d25f03103ed467438c6479e47 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Thu, 18 Nov 2010 06:31:01 +0000 Subject: cluster/pump: send PARENT_UP to dst_child after init is successful Signed-off-by: Amar Tumballi Signed-off-by: Anand V. Avati BUG: 2122 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2122 --- xlators/cluster/afr/src/pump.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'xlators/cluster') diff --git a/xlators/cluster/afr/src/pump.c b/xlators/cluster/afr/src/pump.c index e984d65b8a9..5b1a4f62316 100644 --- a/xlators/cluster/afr/src/pump.c +++ b/xlators/cluster/afr/src/pump.c @@ -814,6 +814,7 @@ pump_cmd_start_setxattr_cbk (call_frame_t *frame, int32_t op_errno) { + call_frame_t *prev = NULL; afr_local_t *local = NULL; int ret = 0; @@ -831,6 +832,11 @@ pump_cmd_start_setxattr_cbk (call_frame_t *frame, "Successfully initiated destination " "brick connect"); + /* send the PARENT_UP as pump is ready now */ + prev = cookie; + if (prev && prev->this) + prev->this->notify (prev->this, GF_EVENT_PARENT_UP, this); + pump_mark_start_pending (this); out: -- cgit