summaryrefslogtreecommitdiffstats
path: root/xlators/features/marker/src/marker-quota.c
diff options
context:
space:
mode:
authorsanoj-unnikrishnan <sunnikri@redhat.com>2018-08-29 14:45:50 +0530
committerAmar Tumballi <amarts@redhat.com>2018-09-07 03:42:18 +0000
commitc8100dfe65e04cf818b7535fbec658667b9d5dbb (patch)
tree43b720423d0972a7cbaf317053e037f204906cc7 /xlators/features/marker/src/marker-quota.c
parentf6a7f6e8124327509559170faa9a4dce6fad9731 (diff)
Quota: Fix for clang issues
Updates: bz#1193929 Change-Id: I549f741fbf97ee3fa2d63edacee5b705ef37c49a Signed-off-by: sanoj-unnikrishnan <sunnikri@redhat.com>
Diffstat (limited to 'xlators/features/marker/src/marker-quota.c')
-rw-r--r--xlators/features/marker/src/marker-quota.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xlators/features/marker/src/marker-quota.c b/xlators/features/marker/src/marker-quota.c
index 6d3c5ea..8c8bfe0 100644
--- a/xlators/features/marker/src/marker-quota.c
+++ b/xlators/features/marker/src/marker-quota.c
@@ -1446,7 +1446,7 @@ out:
call_resume (stub);
if (ret)
- gf_log_callingfn (this->name, GF_LOG_ERROR,
+ gf_log_callingfn (this ? this->name : "Marker", GF_LOG_ERROR,
"mq_reduce_parent_size_txn failed");
return ret;
@@ -2183,8 +2183,8 @@ mq_req_xattr (xlator_t *this, loc_t *loc, dict_t *dict,
out:
if (ret < 0)
- gf_log_callingfn (this->name, GF_LOG_ERROR, "dict set failed");
-
+ gf_log_callingfn (this ? this->name : "Marker",
+ GF_LOG_ERROR, "dict set failed");
return ret;
}