From ba044581fa8781886fbd4f4675f388c79f599b2c Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Fri, 1 Apr 2011 03:00:04 +0000 Subject: features/quota: use a double pointer to uint64_t as an argument to dict_get_bin while getting size. Signed-off-by: Raghavendra G Signed-off-by: Vijay Bellur BUG: 2604 (Quota: crossing the set limit) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2604 --- xlators/features/quota/src/quota.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators') diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c index 8a8523a89..0b0f8ce93 100644 --- a/xlators/features/quota/src/quota.c +++ b/xlators/features/quota/src/quota.c @@ -528,7 +528,7 @@ quota_lookup_cbk (call_frame_t *frame, void *cookie, xlator_t *this, quota_inode_ctx_t *ctx = NULL; quota_dentry_t *dentry = NULL; quota_priv_t *priv = NULL; - int64_t size = 0; + int64_t *size = 0; local = frame->local; @@ -559,7 +559,7 @@ quota_lookup_cbk (call_frame_t *frame, void *cookie, xlator_t *this, ret = dict_get_bin (dict, QUOTA_SIZE_KEY, (void **) &size); if (ret == 0) { - ctx->size = ntoh64 (size); + ctx->size = ntoh64 (*size); gettimeofday (&ctx->tv, NULL); } } -- cgit