diff options
author | Vijay Bellur <vijay@gluster.com> | 2010-08-09 07:42:02 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-08-11 22:24:43 -0700 |
commit | 5f7018275bf8006ff758817037d03936b8a95d43 (patch) | |
tree | 84f980fce14aa6c167ef031d818b268759efe616 /xlators/mgmt/glusterd/src/glusterd-sm.h | |
parent | b8779318dd2d99e44f54de741beee32f55553e75 (diff) |
glusterd: restore peer information upon restart
Signed-off-by: Vijay Bellur <vijay@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 1310 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1310
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-sm.h')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-sm.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-sm.h b/xlators/mgmt/glusterd/src/glusterd-sm.h index 3d54c4e9d..c49e1f097 100644 --- a/xlators/mgmt/glusterd/src/glusterd-sm.h +++ b/xlators/mgmt/glusterd/src/glusterd-sm.h @@ -38,6 +38,15 @@ //#include "glusterd.h" #include "rpcsvc.h" +struct glusterd_store_handle_ { + char *path; + int fd; + FILE *read; + FILE *write; +}; + +typedef struct glusterd_store_handle_ glusterd_store_handle_t; + typedef enum glusterd_friend_sm_state_ { GD_FRIEND_STATE_DEFAULT = 0, GD_FRIEND_STATE_REQ_SENT, @@ -71,6 +80,7 @@ struct glusterd_peerinfo_ { struct list_head hostnames; struct rpc_clnt *rpc; int connected; + glusterd_store_handle_t *shandle; }; typedef struct glusterd_peerinfo_ glusterd_peerinfo_t; |