From ded39be095fefa7597d6dcb407d3f108aab1fc43 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Thu, 18 Aug 2011 15:32:52 +0530 Subject: cluster/afr: Fix endian conversion for fxattrop Change-Id: I55f968ead3c7e3ce602eb7d7ba86315e8442d3cf BUG: 3182 Reviewed-on: http://review.gluster.com/257 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- xlators/cluster/afr/src/afr-transaction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xlators/cluster/afr/src/afr-transaction.c b/xlators/cluster/afr/src/afr-transaction.c index 9ffdbdb49f7..cf0cb0b0592 100644 --- a/xlators/cluster/afr/src/afr-transaction.c +++ b/xlators/cluster/afr/src/afr-transaction.c @@ -321,7 +321,7 @@ afr_set_piggyback_dict (afr_private_t *priv, dict_t *xattr, int32_t **pending, memcpy (arr, pending[i], 3 * sizeof (int32_t)); - arr[index]++; + arr[index] = hton32 (ntoh32 (arr[index]) + 1); ret = dict_set_bin (xattr, priv->pending_key[i], arr, 3 * sizeof (int32_t)); -- cgit