From 991dd5e4709296d80358d6d076507635c6b3b1e1 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Tue, 1 Jul 2014 11:57:19 +0530 Subject: mgmt/glusterd: use the right rpc for snapd while getting pending node rpc * Also changed the testcase bug-1111041.t to correctly get the snapshot daemon's pid Change-Id: I22c09a1e61f049f21f1886f8baa5ff421af3f8fa BUG: 1111041 Signed-off-by: Raghavendra Bhat Reviewed-on: http://review.gluster.org/8209 Tested-by: Gluster Build System Reviewed-by: Sachin Pandit Reviewed-by: Kaushal M --- xlators/mgmt/glusterd/src/glusterd-utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.c') diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index 04a2e62ee65..fb677200a7e 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -5808,7 +5808,7 @@ glusterd_pending_node_get_rpc (glusterd_pending_node_t *pending_node) rpc = quotad->rpc; } else if (pending_node->type == GD_NODE_SNAPD) { snapd = pending_node->node; - rpc = quotad->rpc; + rpc = snapd->rpc; } else { GF_ASSERT (0); } @@ -7522,7 +7522,7 @@ glusterd_add_snapd_to_dict (glusterd_volinfo_t *volinfo, snprintf (base_key, sizeof (base_key), "brick%d", count); snprintf (key, sizeof (key), "%s.hostname", base_key); - ret = dict_set_str (dict, key, "Snap Daemon"); + ret = dict_set_str (dict, key, "Snapshot Daemon"); if (ret) goto out; -- cgit