diff options
author | Vikas Gorur <vikas@gluster.com> | 2009-04-09 03:53:26 -0700 |
---|---|---|
committer | Anand V. Avati <avati@amp.gluster.com> | 2009-04-09 18:57:01 +0530 |
commit | ec35b79f746d8a9451d7a3b9894025fdad7382f4 (patch) | |
tree | 9396c57dfee291eee6539dd602a34ef2b59d04bc /xlators/cluster/afr/src/afr-self-heal-data.c | |
parent | 445b57bf7207107a9ef078697b7d03bb9349747a (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-data.c')
-rw-r--r-- | xlators/cluster/afr/src/afr-self-heal-data.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-data.c b/xlators/cluster/afr/src/afr-self-heal-data.c index bc13a43ab..8dad39257 100644 --- a/xlators/cluster/afr/src/afr-self-heal-data.c +++ b/xlators/cluster/afr/src/afr-self-heal-data.c @@ -302,8 +302,9 @@ afr_sh_data_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_DATA_PENDING, + sh->delta_matrix, sh->success, + priv->child_count); erase_xattr = CALLOC (sizeof (*erase_xattr), priv->child_count); |