diff options
author | Pranith Kumar K <pranithk@gluster.com> | 2011-08-13 21:52:35 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2011-08-13 09:27:09 -0700 |
commit | a0071bdf2a0f73fd17ac769298ed65b245f0607c (patch) | |
tree | 01b7cbddb5560ab08412fd4a3d916327f6b37957 /xlators | |
parent | e618c1b59debbb9184874a06cbc64b8ac846a0d3 (diff) |
cluster/afr: read_child should be >= 0v3.3.0qa2
Change-Id: I447fb6a93cdd77de322cd5ded30673411c4cf79e
BUG: 3251
Reviewed-on: http://review.gluster.com/233
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/cluster/afr/src/afr-common.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-common.c b/xlators/cluster/afr/src/afr-common.c index 571ba07045b..ca470716aee 100644 --- a/xlators/cluster/afr/src/afr-common.c +++ b/xlators/cluster/afr/src/afr-common.c @@ -495,7 +495,9 @@ afr_set_read_ctx_from_policy (xlator_t *this, inode_t *inode, prev_read_child, config_read_child, NULL); - afr_inode_set_read_ctx (this, inode, read_child, fresh_children); + if (read_child >= 0) + afr_inode_set_read_ctx (this, inode, read_child, + fresh_children); } /* afr_next_call_child () |