summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/features/marker/src/marker-quota-helper.c3
-rw-r--r--xlators/features/marker/src/marker-quota.c6
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-quotad-svc.c2
3 files changed, 6 insertions, 5 deletions
diff --git a/xlators/features/marker/src/marker-quota-helper.c b/xlators/features/marker/src/marker-quota-helper.c
index 92d4094e7f8..1fbadcfe9d3 100644
--- a/xlators/features/marker/src/marker-quota-helper.c
+++ b/xlators/features/marker/src/marker-quota-helper.c
@@ -305,7 +305,8 @@ mq_dict_set_contribution (xlator_t *this, dict_t *dict, loc_t *loc,
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;
}
diff --git a/xlators/features/marker/src/marker-quota.c b/xlators/features/marker/src/marker-quota.c
index 6d3c5eaec23..8c8bfe0255a 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;
}
diff --git a/xlators/mgmt/glusterd/src/glusterd-quotad-svc.c b/xlators/mgmt/glusterd/src/glusterd-quotad-svc.c
index 5e2bd4c9672..827b2c62ccb 100644
--- a/xlators/mgmt/glusterd/src/glusterd-quotad-svc.c
+++ b/xlators/mgmt/glusterd/src/glusterd-quotad-svc.c
@@ -213,6 +213,6 @@ manager:
PROC_START_NO_WAIT);
out:
- gf_msg_debug (this->name, 0, "Returning %d", ret);
+ gf_msg_debug (this ? this->name : "Quotad", 0, "Returning %d", ret);
return ret;
}