diff options
author | Atin Mukherjee <amukherj@redhat.com> | 2017-02-09 10:28:55 +0530 |
---|---|---|
committer | Jeff Darcy <jdarcy@redhat.com> | 2017-02-09 11:19:43 -0500 |
commit | 824a48fb5ce20e26ed78b26afd81ec876bc826ec (patch) | |
tree | a10cbfb7867594165bd92a0c9aaf197764105a99 /xlators/mgmt/glusterd | |
parent | 2199c688b73dfe90868f9469f92e21b0e0795e57 (diff) |
glusterd: put null check for mod_dict in build_shd_graph
Change-Id: I849f5f7eb5932d2dc2a76f8abc61e41231f9883e
BUG: 1420614
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
Reviewed-on: https://review.gluster.org/16573
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Ravishankar N <ravishankar@redhat.com>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: Prashanth Pai <ppai@redhat.com>
Smoke: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'xlators/mgmt/glusterd')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volgen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volgen.c b/xlators/mgmt/glusterd/src/glusterd-volgen.c index a596efa827a..059161470ae 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volgen.c +++ b/xlators/mgmt/glusterd/src/glusterd-volgen.c @@ -4997,7 +4997,8 @@ build_shd_graph (volgen_graph_t *graph, dict_t *mod_dict) goto out; } - graph_check = dict_get_str_boolean (mod_dict, "graph-check", 0); + if (mod_dict) + graph_check = dict_get_str_boolean (mod_dict, "graph-check", 0); iostxl = volgen_graph_add_as (graph, "debug/io-stats", "glustershd"); if (!iostxl) { ret = -1; |