summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendra@redhat.com>2014-06-16 20:38:42 +0530
committerKaushal M <kaushal@redhat.com>2014-06-17 02:37:32 -0700
commit53d932b490c505901ddd1a0133e8125ad6dfd24c (patch)
treebe82f373dfcf749eee356bf076b008c162522dc8 /xlators
parent84d370774cdbc6847f4f2f64a7f47abb27a7471b (diff)
mgmt/glusterd: save the snapd port in volinfo after starting snapd
Change-Id: I9266bbf4f67a2135f9a81b32fe88620be11af6ea BUG: 1109889 Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com> Reviewed-on: http://review.gluster.org/8084 Reviewed-by: Kaushal M <kaushal@redhat.com> Tested-by: Kaushal M <kaushal@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c2
-rw-r--r--xlators/protocol/client/src/client.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index 9c6414905c3..66b92a712af 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -13385,6 +13385,8 @@ glusterd_snapd_start (glusterd_volinfo_t *volinfo, gf_boolean_t wait)
synclock_lock (&priv->big_lock);
}
+ volinfo->snapd.port = snapd_port;
+
connect:
if (ret == 0)
glusterd_snapd_connect (volinfo, sockfpath);
diff --git a/xlators/protocol/client/src/client.c b/xlators/protocol/client/src/client.c
index 7ab10b085b4..25565925a5d 100644
--- a/xlators/protocol/client/src/client.c
+++ b/xlators/protocol/client/src/client.c
@@ -2756,6 +2756,8 @@ client_priv_dump (xlator_t *this)
gf_proc_dump_write("connecting", "%d", conf->connecting);
+ gf_proc_dump_write ("connected", "%d", conf->connected);
+
if (conf->rpc) {
gf_proc_dump_write("total_bytes_read", "%"PRIu64,
conf->rpc->conn.trans->total_bytes_read);