summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaghavendra G <rgowdapp@redhat.com>2014-02-06 15:22:11 +0530
committerVijay Bellur <vbellur@redhat.com>2014-02-08 08:22:22 -0800
commitc6ef2cd937c1a8b4b7ef1c2636177c3345f0cedf (patch)
tree6021a87447b4bf5f04195139c92f373a9a9096f3
parentef37b4b6a22fe04b5a1789c45b28c8d7e6fe764a (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/6924 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
-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 65513596350..fb838aa04e4 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 "