diff options
author | Pranith K <pranithk@gluster.com> | 2011-07-14 08:07:46 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-07-17 07:45:11 -0700 |
commit | b0a3a3fda3f0993cd8c0e1b135bb569b6543e7c0 (patch) | |
tree | 59e736d4246af1ce27d4bf7c9e5e42648d4c051b /xlators/cluster/afr/src/afr-transaction.c | |
parent | bfc0e16e43815ab6d6e67f4bd26694ebd72b3360 (diff) |
cluster/afr: Choose next call child from fresh-children for inode-read-fops
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>
BUG: 2840 (files not getting self-healed when the first child goes down)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2840
Diffstat (limited to 'xlators/cluster/afr/src/afr-transaction.c')
-rw-r--r-- | xlators/cluster/afr/src/afr-transaction.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/cluster/afr/src/afr-transaction.c b/xlators/cluster/afr/src/afr-transaction.c index b8d2e27a448..2e2c57265a3 100644 --- a/xlators/cluster/afr/src/afr-transaction.c +++ b/xlators/cluster/afr/src/afr-transaction.c @@ -428,10 +428,10 @@ afr_update_read_child (call_frame_t *frame, xlator_t *this, inode_t *inode, if (pending[curr_read_child][idx] != 0) goto out; - fresh_children = GF_CALLOC (priv->child_count, sizeof (*fresh_children), - gf_afr_mt_int32_t); + fresh_children = afr_fresh_children_create (priv->child_count); if (!fresh_children) goto out; + for (new_read_child = 0; new_read_child < priv->child_count; new_read_child++) { |