diff options
author | Raghavendra G <raghavendra@gluster.com> | 2011-04-16 09:31:24 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-04-16 10:51:52 -0700 |
commit | 87e4d4814458c57a3337e7c610f6ead76d0cb28f (patch) | |
tree | baef5daaf86f91f3e9dce3fbdfef534a77d0e1df /xlators/features | |
parent | 26dc794e6586ca911678fc80e831e18cd99973fa (diff) |
marker/quota: use correct byte ordering when updating parent's size.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>
BUG: 2649 (Quota: size field is not getting updated properly)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2649
Diffstat (limited to 'xlators/features')
-rw-r--r-- | xlators/features/marker/src/marker-quota.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/marker/src/marker-quota.c b/xlators/features/marker/src/marker-quota.c index b07a7d13ef0..6230751542c 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) |