summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-self-heal-metadata.c
diff options
context:
space:
mode:
authorVikas Gorur <vikas@gluster.com>2009-04-09 03:53:26 -0700
committerAnand V. Avati <avati@amp.gluster.com>2009-04-09 18:57:01 +0530
commitec35b79f746d8a9451d7a3b9894025fdad7382f4 (patch)
tree9396c57dfee291eee6539dd602a34ef2b59d04bc /xlators/cluster/afr/src/afr-self-heal-metadata.c
parent445b57bf7207107a9ef078697b7d03bb9349747a (diff)
Erase xattr during self-heal based on original dict.
Decrement xattr during self-heal based on the original dict instead of pending_matrix, as the pending_matrix might have been altered later. Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr-self-heal-metadata.c')
-rw-r--r--xlators/cluster/afr/src/afr-self-heal-metadata.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-metadata.c b/xlators/cluster/afr/src/afr-self-heal-metadata.c
index 4e58c5440..9ce42691a 100644
--- a/xlators/cluster/afr/src/afr-self-heal-metadata.c
+++ b/xlators/cluster/afr/src/afr-self-heal-metadata.c
@@ -214,8 +214,9 @@ afr_sh_metadata_erase_pending (call_frame_t *frame, xlator_t *this)
priv = this->private;
- afr_sh_pending_to_delta (sh->pending_matrix, sh->delta_matrix,
- sh->success, priv->child_count);
+ afr_sh_pending_to_delta (sh->xattr, AFR_METADATA_PENDING,
+ sh->delta_matrix, sh->success,
+ priv->child_count);
erase_xattr = CALLOC (sizeof (*erase_xattr), priv->child_count);