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>
This commit is contained in:
Kaushal M 2015-06-23 15:40:59 +05:30 committed by Atin Mukherjee
parent 0be38bdb40
commit 6853d5091d

View File

@ -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 ();