From 54a5f0a07817098134219aea9414b029013927f3 Mon Sep 17 00:00:00 2001 From: Prashanth Pai Date: Sat, 27 Oct 2018 16:32:05 +0530 Subject: glusterfsd: Make each multiplexed brick sign in NOTE: This change will be consumed by brick mux implementation of glusterd2 only. No corresponsing change in glusterd1 has been made. When a multiplexed brick process is shutting down, it sends sign out requests to glusterd for all bricks that it contains. However, sign in request is only sent for a single brick. Consequently, glusterd has to use some tricky means to repopulate pmap registry with information of multiplexed bricks during glusterd restart. This change makes each multiplexed brick send a sign in request to glusterd2 which ensures that glusterd2 can easily repopulate pmap registry with port information. As a bonus, sign in request will now also contain PID of the brick sending the request so that glusterd2 can rely on this instead of having to read/manage brick pidfiles. Change-Id: I409501515bd9a28ee7a960faca080e97cabe5858 updates: bz#1193929 Signed-off-by: Prashanth Pai --- rpc/xdr/src/portmap-xdr.x | 1 + 1 file changed, 1 insertion(+) (limited to 'rpc') diff --git a/rpc/xdr/src/portmap-xdr.x b/rpc/xdr/src/portmap-xdr.x index 66a86a1dae1..e360911bc07 100644 --- a/rpc/xdr/src/portmap-xdr.x +++ b/rpc/xdr/src/portmap-xdr.x @@ -40,6 +40,7 @@ struct pmap_brick_by_port_rsp { struct pmap_signin_req { string brick<>; int port; + int pid; }; struct pmap_signin_rsp { -- cgit