summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaushal M <kaushal@redhat.com>2015-06-23 15:40:59 +0530
committerRaghavendra Bhat <raghavendra@redhat.com>2015-07-10 00:29:44 -0700
commitd35d7c1bf986cacb65da912123b9a34ebe946bef (patch)
tree78fbdef1c11886ed783c986bfaf37d50f91b2cec
parent96987f8e582667defff313e84f85011bff927d3b (diff)
glusterd: Store peerinfo after updating hostnames
Backport of https://review.gluster.org/11365 Change-Id: I1d36ac63de810061d60edb28b6f591ae45d5cd3a BUG: 1234846 Signed-off-by: Kaushal M <kaushal@redhat.com> Reviewed-on: http://review.gluster.org/11395 Tested-by: Gluster Build System <jenkins@build.gluster.com> Tested-by: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Raghavendra Bhat <raghavendra@redhat.com>
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-handler.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c
index d3d4a91909b..9e52effa9f3 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handler.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handler.c
@@ -2470,6 +2470,10 @@ __glusterd_handle_friend_update (rpcsvc_request_t *req)
"update peer %s", peerinfo->hostname);
goto out;
}
+ ret = glusterd_store_peerinfo (peerinfo);
+ if (ret)
+ gf_log (this->name, GF_LOG_ERROR,
+ "Failed to store peerinfo");
}
peerinfo = NULL;