diff options
author | Junaid <junaid@gluster.com> | 2011-10-17 12:58:26 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2011-10-27 02:57:34 -0700 |
commit | 298eddc58296152c175797546fa9c6c3a90046d1 (patch) | |
tree | 2668934535467930beb1374f7a0a279d1237d18b /xlators | |
parent | ffb3e103e2ead4a1b207a57e75eee683e8de5ad9 (diff) |
features/marker-quota: Donot log when inode or inode-ctx is NULL.
When running rm -rf from mount point, quota-updation process may endup in a state where the
inode is already removed from the gluster inode table, but the updation has process is still in
progress. This is not a error condition because the updation is done asynchronously.
Change-Id: I2d3aad716bb1c971115004a70ca76e2dd5088e44
BUG: 3609
Reviewed-on: http://review.gluster.com/603
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/features/marker/src/marker-quota-helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/features/marker/src/marker-quota-helper.c b/xlators/features/marker/src/marker-quota-helper.c index b487af4a947..10746254ded 100644 --- a/xlators/features/marker/src/marker-quota-helper.c +++ b/xlators/features/marker/src/marker-quota-helper.c @@ -136,8 +136,8 @@ mq_get_contribution_node (inode_t *inode, quota_inode_ctx_t *ctx) inode_contribution_t *contri = NULL; inode_contribution_t *temp = NULL; - GF_VALIDATE_OR_GOTO ("marker", inode, out); - GF_VALIDATE_OR_GOTO ("marker", ctx, out); + if (!inode || !ctx) + goto out; list_for_each_entry (temp, &ctx->contribution_head, contri_list) { if (uuid_compare (temp->gfid, inode->gfid) == 0) { |