The thread state is now a property of the worker
A worker's state is not statistics, but transient information.
This commit is contained in:
@ -52,19 +52,6 @@ typedef struct mxs_poll_data
|
||||
} thread;
|
||||
} MXS_POLL_DATA;
|
||||
|
||||
// TODO: Temporarily moved here.
|
||||
/**
|
||||
* Internal MaxScale thread states
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
THREAD_STOPPED,
|
||||
THREAD_IDLE,
|
||||
THREAD_POLLING,
|
||||
THREAD_PROCESSING,
|
||||
THREAD_ZPROCESSING
|
||||
} THREAD_STATE;
|
||||
|
||||
// TODO: Temporarily moved here.
|
||||
/**
|
||||
* The number of buckets used to gather statistics about how many
|
||||
@ -80,7 +67,6 @@ typedef enum
|
||||
// TODO: Temporarily moved here.
|
||||
typedef struct
|
||||
{
|
||||
THREAD_STATE thread_state; /*< The thread state. */
|
||||
int64_t n_read; /*< Number of read events */
|
||||
int64_t n_write; /*< Number of write events */
|
||||
int64_t n_error; /*< Number of error events */
|
||||
|
Reference in New Issue
Block a user