summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorPranith Kumar K <pranithk@gluster.com>2011-05-31 06:15:40 +0000
committerAnand Avati <avati@gluster.com>2011-05-31 09:12:47 -0700
commite6881c06e4097fee880e18d5d7b89a56c0b9820f (patch)
treea180f85e5ee1a10e8a0c5648148301cce001cd52 /xlators
parent273d05313d210bb0500b5d0f572cc751f067d7da (diff)
pump: init last_event array to be used in afr_notify
Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 2870 (Inconsistent xattr values when creating bricks) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2870
Diffstat (limited to 'xlators')
-rw-r--r--xlators/cluster/afr/src/pump.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/pump.c b/xlators/cluster/afr/src/pump.c
index 4bffbd9de4a..99d57f2a51e 100644
--- a/xlators/cluster/afr/src/pump.c
+++ b/xlators/cluster/afr/src/pump.c
@@ -2446,6 +2446,13 @@ init (xlator_t *this)
priv->first_lookup = 1;
priv->root_inode = NULL;
+ priv->last_event = GF_CALLOC (child_count, sizeof (*priv->last_event),
+ gf_afr_mt_int32_t);
+ if (!priv->last_event) {
+ ret = -ENOMEM;
+ goto out;
+ }
+
pump_priv = GF_CALLOC (1, sizeof (*pump_priv),
gf_afr_mt_pump_priv);
if (!pump_priv) {