diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2011-03-29 13:37:26 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2011-03-30 04:28:19 -0700 |
commit | 3ce486929518da2673b6cef5ef1047849f587729 (patch) | |
tree | fbe9a66121158c5e0f33c2043d94cba498f0c379 /xlators/features/quota/src/quota.c | |
parent | b40d510cf534b6fa1acb827ed7c26bcdebc5fd36 (diff) |
access the proper loc structure when inode ctx get fails in quota
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 2611 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2611
Diffstat (limited to 'xlators/features/quota/src/quota.c')
-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 89f390732..8057f6e52 100644 --- a/xlators/features/quota/src/quota.c +++ b/xlators/features/quota/src/quota.c @@ -1558,8 +1558,8 @@ quota_rename (call_frame_t *frame, xlator_t *this, loc_t *oldloc, if (ctx == NULL) { gf_log (this->name, GF_LOG_WARNING, "quota context not set in inode (ino:%"PRId64 - ", gfid:%s)", local->loc.inode->ino, - uuid_utoa (local->loc.inode->gfid)); + ", gfid:%s)", oldloc->inode?oldloc->inode->ino:0, + oldloc->inode?uuid_utoa (oldloc->inode->gfid):"0"); op_errno = EINVAL; goto err; } |