diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2011-10-03 16:01:25 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2011-10-03 06:34:25 -0700 |
commit | 4235f7a74e0c4c637f1db2f49624a972d72b12fb (patch) | |
tree | 83f50f2a915580b33f69a397abfa493482e077bc | |
parent | b6eee04da4a699c7cd850bf2121825cc67f14707 (diff) |
cluster/afr: set the read child ctx only if the self-heal source is validv3.3.0qa14
Change-Id: Ifdf0db71594ce526ad85c21103726798d9aceef4
BUG: 3639
Reviewed-on: http://review.gluster.com/556
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
-rw-r--r-- | xlators/cluster/afr/src/afr-self-heal-entry.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-entry.c b/xlators/cluster/afr/src/afr-self-heal-entry.c index 0481d915d..5a3302f7f 100644 --- a/xlators/cluster/afr/src/afr-self-heal-entry.c +++ b/xlators/cluster/afr/src/afr-self-heal-entry.c @@ -2130,10 +2130,10 @@ afr_sh_entry_fix (call_frame_t *frame, xlator_t *this, afr_reset_children (sh->fresh_children, priv->child_count); afr_get_fresh_children (sh->success_children, sh->sources, - sh->fresh_children, priv->child_count); - afr_inode_set_read_ctx (this, sh->inode, sh->source, - sh->fresh_children); - + sh->fresh_children, priv->child_count); + if (sh->source >= 0) + afr_inode_set_read_ctx (this, sh->inode, sh->source, + sh->fresh_children); heal: afr_sh_entry_sync_prepare (frame, this); |