summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/dht
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2016-05-04 20:16:36 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2016-05-04 22:14:38 -0700
commit09966fff2588e41410eabe75003346edd20404ab (patch)
treebc1b3925fc6976585ed52a4162db6c3f1f9cf332 /xlators/cluster/dht
parent2326f8c2a775f6536d95e2e4676866f1b5dfc368 (diff)
cluster/dht: Perform NULL check on xdata before dict_get()
.. to prevent unnecessary logs from gf_msg_callingfn() Change-Id: I367628fee2f6783ba9ed6f918deabd034df820c9 BUG: 1333043 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/14212 Smoke: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Shyamsundar Ranganathan <srangana@redhat.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'xlators/cluster/dht')
-rw-r--r--xlators/cluster/dht/src/dht-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c
index 37042e654b0..b3e30392c29 100644
--- a/xlators/cluster/dht/src/dht-common.c
+++ b/xlators/cluster/dht/src/dht-common.c
@@ -7206,7 +7206,7 @@ dht_mkdir_hashed_cbk (call_frame_t *frame, void *cookie,
if (op_ret == -1) {
local->op_errno = op_errno;
- parent_layout_changed = dict_get (xdata, GF_PREOP_CHECK_FAILED)
+ parent_layout_changed = (xdata && dict_get (xdata, GF_PREOP_CHECK_FAILED))
? 1 : 0;
if (parent_layout_changed) {
gf_msg (this->name, GF_LOG_INFO, 0,