summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/cluster/dht/src/dht-selfheal.c2
-rw-r--r--xlators/storage/posix/src/posix-helpers.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/xlators/cluster/dht/src/dht-selfheal.c b/xlators/cluster/dht/src/dht-selfheal.c
index 8245cacdc..377dd6ffa 100644
--- a/xlators/cluster/dht/src/dht-selfheal.c
+++ b/xlators/cluster/dht/src/dht-selfheal.c
@@ -414,7 +414,7 @@ dht_selfheal_dir_mkdir (call_frame_t *frame, loc_t *loc,
}
if (!dict)
- gf_log (this->name, GF_LOG_DEBUG,
+ gf_log (this->name, GF_LOG_WARNING,
"dict is NULL, need to make sure gfid's are same");
for (i = 0; i < layout->cnt; i++) {
diff --git a/xlators/storage/posix/src/posix-helpers.c b/xlators/storage/posix/src/posix-helpers.c
index 484e38c71..249a82515 100644
--- a/xlators/storage/posix/src/posix-helpers.c
+++ b/xlators/storage/posix/src/posix-helpers.c
@@ -824,6 +824,9 @@ posix_entry_create_xattr_set (xlator_t *this, const char *path,
data_pair_t *trav = NULL;
int ret = -1;
+ if (!dict)
+ goto out;
+
trav = dict->members_list;
while (trav) {
if (!strcmp (GFID_XATTR_KEY, trav->key) ||