summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorKaushal M <kaushal@redhat.com>2015-06-23 15:40:59 +0530
committerAtin Mukherjee <amukherj@redhat.com>2015-06-26 01:28:45 -0700
commit84396c9834a83b73f6b689d078bb206667cc3f3f (patch)
tree96a3d51931280bbffa1039737c20f0fbca87b0a3 /xlators
parent437edd091717120dd86042200fe2ede8cfa0743c (diff)
glusterd: Store peerinfo after updating hostnames
Backport of https://review.gluster.org/11365 Change-Id: I1d36ac63de810061d60edb28b6f591ae45d5cd3a BUG: 1234843 Signed-off-by: Kaushal M <kaushal@redhat.com> Reviewed-on: http://review.gluster.org/11394 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-handler.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c
index 50fbf8bd4e0..ab2f310b6a0 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handler.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handler.c
@@ -2777,7 +2777,13 @@ __glusterd_handle_friend_update (rpcsvc_request_t *req)
GD_MSG_PEER_INFO_UPDATE_FAIL,
"Failed to "
"update peer %s", peerinfo->hostname);
+ goto unlock;
}
+ ret = glusterd_store_peerinfo (peerinfo);
+ if (ret)
+ gf_msg (this->name, GF_LOG_ERROR, 0,
+ GD_MSG_PEERINFO_CREATE_FAIL,
+ "Failed to store peerinfo");
}
unlock:
rcu_read_unlock ();