diff options
Diffstat (limited to 'xlators/cluster/ec/src/ec-heald.h')
| -rw-r--r-- | xlators/cluster/ec/src/ec-heald.h | 41 |
1 files changed, 12 insertions, 29 deletions
diff --git a/xlators/cluster/ec/src/ec-heald.h b/xlators/cluster/ec/src/ec-heald.h index 0f27a8ec776..6c7da4edc10 100644 --- a/xlators/cluster/ec/src/ec-heald.h +++ b/xlators/cluster/ec/src/ec-heald.h @@ -11,37 +11,20 @@ #ifndef __EC_HEALD_H__ #define __EC_HEALD_H__ -#include "xlator.h" - -struct _ec; -typedef struct _ec ec_t; - -struct subvol_healer { - xlator_t *this; - int subvol; - gf_boolean_t local; - gf_boolean_t running; - gf_boolean_t rerun; - pthread_mutex_t mutex; - pthread_cond_t cond; - pthread_t thread; -}; - -struct _ec_self_heald; -typedef struct _ec_self_heald ec_self_heald_t; - -struct _ec_self_heald { - gf_boolean_t iamshd; - gf_boolean_t enabled; - int timeout; - struct subvol_healer *index_healers; - struct subvol_healer *full_healers; -}; +#include "ec-types.h" // for ec_t +#include "glusterfs/dict.h" // for dict_t +#include "glusterfs/globals.h" // for xlator_t int -ec_xl_op (xlator_t *this, dict_t *input, dict_t *output); +ec_xl_op(xlator_t *this, dict_t *input, dict_t *output); int -ec_selfheal_daemon_init (xlator_t *this); -void ec_selfheal_childup (ec_t *ec, int child); +ec_selfheal_daemon_init(xlator_t *this); + +void +ec_shd_index_healer_wake(ec_t *ec); + +void +ec_selfheal_daemon_fini(xlator_t *this); + #endif /* __EC_HEALD_H__ */ |
