diff options
author | Raghavendra G <raghavendra@gluster.com> | 2010-09-18 03:21:56 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-09-18 02:14:27 -0700 |
commit | 994d6de08c208509f69b2a0df16f6398dde49215 (patch) | |
tree | 0649a73b8a5cd071c2f02ad9a499393c0f258852 /xlators/cluster/afr/src | |
parent | dc648b30d2b892ef9413a32893070d1abf69f3df (diff) |
cluster/afr: allocate memory big enough to hold iatt structures.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 927 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=927
Diffstat (limited to 'xlators/cluster/afr/src')
-rw-r--r-- | xlators/cluster/afr/src/afr-mem-types.h | 2 | ||||
-rw-r--r-- | xlators/cluster/afr/src/afr-self-heal-common.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/xlators/cluster/afr/src/afr-mem-types.h b/xlators/cluster/afr/src/afr-mem-types.h index 3720d85e61b..c1a86b8275b 100644 --- a/xlators/cluster/afr/src/afr-mem-types.h +++ b/xlators/cluster/afr/src/afr-mem-types.h @@ -33,7 +33,7 @@ enum gf_afr_mem_types_ { gf_afr_mt_xattr_key, gf_afr_mt_dict_t, gf_afr_mt_xlator_t, - gf_afr_mt_stat, + gf_afr_mt_iatt, gf_afr_mt_int, gf_afr_mt_afr_node_character, gf_afr_mt_sh_diff_loop_state, diff --git a/xlators/cluster/afr/src/afr-self-heal-common.c b/xlators/cluster/afr/src/afr-self-heal-common.c index 19ad4a849d3..2e677d77518 100644 --- a/xlators/cluster/afr/src/afr-self-heal-common.c +++ b/xlators/cluster/afr/src/afr-self-heal-common.c @@ -1648,8 +1648,8 @@ afr_self_heal (call_frame_t *frame, xlator_t *this) sh->completion_cbk = afr_self_heal_completion_cbk; - sh->buf = GF_CALLOC (priv->child_count, sizeof (struct stat), - gf_afr_mt_stat); + sh->buf = GF_CALLOC (priv->child_count, sizeof (struct iatt), + gf_afr_mt_iatt); sh->child_errno = GF_CALLOC (priv->child_count, sizeof (int), gf_afr_mt_int); sh->success = GF_CALLOC (priv->child_count, sizeof (int), |