summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/bugs/bug-1111041.t4
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/bugs/bug-1111041.t b/tests/bugs/bug-1111041.t
index d6cf2e91df0..2ff5294f238 100644
--- a/tests/bugs/bug-1111041.t
+++ b/tests/bugs/bug-1111041.t
@@ -8,7 +8,7 @@
cleanup;
function is_snapd_running {
- $CLI volume status $1 | grep "Snap Daemon" | wc -l;
+ $CLI volume status $1 | grep "Snapshot Daemon" | wc -l;
}
TEST glusterd;
@@ -29,7 +29,7 @@ SNAPD_PID=$(ps aux | grep snapd | grep -v grep | awk '{print $2}');
TEST [ $SNAPD_PID -gt 0 ];
-SNAPD_PID2=$($CLI volume status $V0 | grep "Snap Daemon" | awk {'print $7'});
+SNAPD_PID2=$($CLI volume status $V0 | grep "Snapshot Daemon" | awk {'print $7'});
TEST [ $SNAPD_PID -eq $SNAPD_PID2 ]
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;