summaryrefslogtreecommitdiffstats
path: root/xlators/features/quota
diff options
context:
space:
mode:
authorRaghavendra G <rgowdapp@redhat.com>2014-02-06 15:22:11 +0530
committerAnand Avati <avati@redhat.com>2014-02-08 02:57:27 -0800
commit0ff6a1da6ac4a4b0e01ae50f1d8e3605e36bf2fc (patch)
treea75a8772d4d7ec5a4d67a8579ce286b0e4ea1c00 /xlators/features/quota
parent032854831a3dd338d7d5aee9228937d0418b8876 (diff)
features/quota: fix crash in error handling after building ancestry.
Change-Id: Ifbebf1aa496d49a6c4bb30258b83aaf9792828e5 BUG: 1059833 Signed-off-by: Raghavendra G <rgowdapp@redhat.com> Reviewed-on: http://review.gluster.org/6923 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/features/quota')
-rw-r--r--xlators/features/quota/src/quota.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c
index a8b4eb2c360..5224c475bdc 100644
--- a/xlators/features/quota/src/quota.c
+++ b/xlators/features/quota/src/quota.c
@@ -721,7 +721,7 @@ quota_check_limit_continuation (struct list_head *parents, inode_t *inode,
this = THIS;
if ((op_ret < 0) || list_empty (parents)) {
- if (list_empty (parents)) {
+ if (op_ret >= 0) {
gf_log (this->name, GF_LOG_WARNING,
"Couldn't build ancestry for inode (gfid:%s). "
"Without knowing ancestors till root, quota "