diff options
author | Pranith Kumar K <pranithk@gluster.com> | 2011-08-18 15:27:43 +0530 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-08-18 04:05:04 -0700 |
commit | b7596882b3ceba77bd812d2e5757d9fa3aa0fa17 (patch) | |
tree | 09b687b5b524f424cea9c8c813aaa46ed9bd79b6 /xlators/cluster | |
parent | 53b8c4388dd885c17ab7700a020fcc4f2309d9e1 (diff) |
cluster/afr: Fix endian conversion for fxattrop
Change-Id: Ie67c4da49876555c3162909e474b9089a85f99a6
BUG: 3182
Reviewed-on: http://review.gluster.com/256
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@gluster.com>
Diffstat (limited to 'xlators/cluster')
-rw-r--r-- | xlators/cluster/afr/src/afr-transaction.c | 2 |
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 8b5d79d11df..ac329958d2a 100644 --- a/xlators/cluster/afr/src/afr-transaction.c +++ b/xlators/cluster/afr/src/afr-transaction.c @@ -322,7 +322,7 @@ afr_set_piggyback_dict (afr_private_t *priv, dict_t *xattr, int32_t **pending, memcpy (arr, pending[i], pending_xattr_size); - arr[index]++; + arr[index] = hton32 (ntoh32 (arr[index]) + 1); ret = dict_set_bin (xattr, priv->pending_key[i], arr, pending_xattr_size); |