diff options
author | Junaid <junaid@gluster.com> | 2011-10-17 12:38:14 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2011-10-28 05:05:40 -0700 |
commit | fb653259265cbef00117e89451689dcea6c356b5 (patch) | |
tree | 0b43f1c5f8b2086c8f25e6cf05a990658b98e5e2 /xlators/features | |
parent | dbf7aa864d8f0515fe4d742fc520a4d1134dbbd4 (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: I739bff466d23f55f842c16dd4fa2808df188ddf8
BUG: 3609
Reviewed-on: http://review.gluster.com/597
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators/features')
-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) { |