diff options
author | Raghavendra G <raghavendra@gluster.com> | 2011-04-01 03:00:04 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2011-04-05 00:45:08 -0700 |
commit | ba044581fa8781886fbd4f4675f388c79f599b2c (patch) | |
tree | fb1dcd3d8b046fa0c6cdf7cc47ad93ed68cacab9 /xlators/features/quota | |
parent | ff9e63c0975e786a69e5ecede78b178f20baceb7 (diff) |
features/quota: use a double pointer to uint64_t as an argument to dict_get_bin while getting size.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 2604 (Quota: crossing the set limit)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2604
Diffstat (limited to 'xlators/features/quota')
-rw-r--r-- | xlators/features/quota/src/quota.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c index 8a8523a890e..0b0f8ce9364 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); } } |