diff options
author | Pranith Kumar K <pranithk@gluster.com> | 2011-05-31 06:19:54 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-05-31 09:11:30 -0700 |
commit | 6fa0515c04563c0ff8f6a189c9189a7f4da29e77 (patch) | |
tree | 52fda2a1054fe1673f73d11c152ad8391af2b95b /xlators/cluster | |
parent | 761bc05f58fcadd7c6e861eab4619b61fcac0eed (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/cluster')
-rw-r--r-- | xlators/cluster/afr/src/pump.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/pump.c b/xlators/cluster/afr/src/pump.c index f42dab82e..10b9b7203 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) { |