summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorPranith Kumar K <pranithk@gluster.com>2011-05-31 06:08:12 +0000
committerAnand Avati <avati@gluster.com>2011-05-31 09:10:39 -0700
commitc5a7947e6a7422360816e45fc3c12cf9c0152802 (patch)
tree7c4ff7fc8855281f684e7986f23c7941ab3dad88 /xlators
parent1b0c33f8960fb1fae03012b479d6cac9ce4d8941 (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) {