From 87e4d4814458c57a3337e7c610f6ead76d0cb28f Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Sat, 16 Apr 2011 09:31:24 +0000 Subject: marker/quota: use correct byte ordering when updating parent's size. Signed-off-by: Raghavendra G Signed-off-by: Anand Avati BUG: 2649 (Quota: size field is not getting updated properly) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2649 --- xlators/features/marker/src/marker-quota.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xlators/features/marker/src/marker-quota.c b/xlators/features/marker/src/marker-quota.c index b07a7d13e..623075154 100644 --- a/xlators/features/marker/src/marker-quota.c +++ b/xlators/features/marker/src/marker-quota.c @@ -1092,7 +1092,7 @@ quota_update_parent_size (call_frame_t *frame, QUOTA_ALLOC_OR_GOTO (size, int64_t, ret, err); - *size = ntoh64 (local->delta); + *size = hton64 (local->delta); ret = dict_set_bin (newdict, QUOTA_SIZE_KEY, size, 8); if (ret < 0) -- cgit