summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
Diffstat (limited to 'xlators')
-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 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));