summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPranith Kumar K <pranithk@gluster.com>2011-08-18 15:32:52 +0530
committerAnand Avati <avati@gluster.com>2011-08-18 04:06:58 -0700
commitded39be095fefa7597d6dcb407d3f108aab1fc43 (patch)
treeb67052544c229872b52670565ad4180c163de9c4
parent9adc1277d6a0989ea9a07363b6705e80afc8d7d2 (diff)
cluster/afr: Fix endian conversion for fxattrop
Change-Id: I55f968ead3c7e3ce602eb7d7ba86315e8442d3cf BUG: 3182 Reviewed-on: http://review.gluster.com/257 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@gluster.com>
-rw-r--r--xlators/cluster/afr/src/afr-transaction.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-transaction.c b/xlators/cluster/afr/src/afr-transaction.c
index 9ffdbdb..cf0cb0b 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));