diff options
author | Amar Tumballi <amar@gluster.com> | 2010-11-18 06:31:01 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-11-18 05:55:51 -0800 |
commit | f0cdfd03051cee8d25f03103ed467438c6479e47 (patch) | |
tree | d5784bc213fa61f3b7df6c65533e0fd62d724aec /xlators/cluster/afr | |
parent | 61a8945649eced6c490a92e6533c5fb3a9d9a1d3 (diff) |
cluster/pump: send PARENT_UP to dst_child after init is successful
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 2122 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2122
Diffstat (limited to 'xlators/cluster/afr')
-rw-r--r-- | xlators/cluster/afr/src/pump.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/pump.c b/xlators/cluster/afr/src/pump.c index e984d65b8..5b1a4f623 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: |