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-24 21:08:10 -0700
commit6853d5091dd52059490e5e548c06faf1306079df (patch)
treeca904a9f4a6344a0560da447610f3202ddee8c81 /xlators
parent0be38bdb4007c1bcb51545057e6402f6e14922cd (diff)
glusterd: Store peerinfo after updating hostnames
Change-Id: I1d36ac63de810061d60edb28b6f591ae45d5cd3a BUG: 1234842 Signed-off-by: Kaushal M <kaushal@redhat.com> Reviewed-on: http://review.gluster.org/11365 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Atin Mukherjee <amukherj@redhat.com> Tested-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 c3bf263c4f1..e8742c42f70 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handler.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handler.c
@@ -2773,7 +2773,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 ();