From bc27b7a9e44f2af647b87ab393b0fd1cacd211cf Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Fri, 15 Mar 2013 10:26:53 +0100 Subject: store: move glusterd_store functions from mgmt/glusterd to libglusterfs Making the glusterd_store_* functions re-usable will help with future changes that need to read/write lists of items. BUG: 904065 Change-Id: I99fb8eced76d12d5a254567eccff9790b43d8da3 Signed-off-by: Niels de Vos Reviewed-on: http://review.gluster.org/4676 Reviewed-by: Krishnan Parthasarathi Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/mgmt/glusterd/src/glusterd-sm.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'xlators/mgmt/glusterd/src/glusterd-sm.h') diff --git a/xlators/mgmt/glusterd/src/glusterd-sm.h b/xlators/mgmt/glusterd/src/glusterd-sm.h index 9861a48a5..e29bb7277 100644 --- a/xlators/mgmt/glusterd/src/glusterd-sm.h +++ b/xlators/mgmt/glusterd/src/glusterd-sm.h @@ -27,14 +27,7 @@ #include "byte-order.h" //#include "glusterd.h" #include "rpcsvc.h" - -struct glusterd_store_handle_ { - char *path; - int fd; - FILE *read; -}; - -typedef struct glusterd_store_handle_ glusterd_store_handle_t; +#include "store.h" typedef enum gd_quorum_contribution_ { QUORUM_NONE, @@ -105,7 +98,7 @@ struct glusterd_peerinfo_ { rpc_clnt_prog_t *mgmt; rpc_clnt_prog_t *peer; int connected; - glusterd_store_handle_t *shandle; + gf_store_handle_t *shandle; glusterd_sm_tr_log_t sm_log; gf_boolean_t quorum_action; gd_quorum_contrib_t quorum_contrib; -- cgit