diff options
-rw-r--r-- | xlators/cluster/dht/src/dht-common.c | 2 |
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, |