Addition of maxinfo commands
show sessions show clients show listeners show services show servers
This commit is contained in:
@ -18,6 +18,7 @@
|
||||
* Copyright MariaDB Corporation Ab 2013-2014
|
||||
*/
|
||||
#include <dcb.h>
|
||||
#include <resultset.h>
|
||||
|
||||
/**
|
||||
* @file service.h
|
||||
@ -41,6 +42,7 @@
|
||||
* 30/07/14 Massimiliano Pinto Addition of NDB status for MySQL Cluster
|
||||
* 30/08/14 Massimiliano Pinto Addition of SERVER_STALE_STATUS
|
||||
* 27/10/14 Massimiliano Pinto Addition of SERVER_MASTER_STICKINESS
|
||||
* 19/02/15 Mark Riddoch Addition of serverGetList
|
||||
*
|
||||
* @endverbatim
|
||||
*/
|
||||
@ -186,4 +188,5 @@ extern void serverAddParameter(SERVER *, char *, char *);
|
||||
extern char *serverGetParameter(SERVER *, char *);
|
||||
extern void server_update(SERVER *, char *, char *, char *);
|
||||
extern void server_set_unique_name(SERVER *, char *);
|
||||
extern RESULTSET *serverGetList();
|
||||
#endif
|
||||
|
||||
@ -196,4 +196,5 @@ char* service_get_name(SERVICE* svc);
|
||||
void service_shutdown();
|
||||
extern int serviceSessionCountAll();
|
||||
extern RESULTSET *serviceGetList();
|
||||
extern RESULTSET *serviceGetListenerList();
|
||||
#endif
|
||||
|
||||
@ -40,6 +40,7 @@
|
||||
#include <atomic.h>
|
||||
#include <buffer.h>
|
||||
#include <spinlock.h>
|
||||
#include <resultset.h>
|
||||
#include <skygw_utils.h>
|
||||
#include <log_manager.h>
|
||||
|
||||
@ -99,6 +100,14 @@ typedef struct {
|
||||
void *session;
|
||||
} SESSION_FILTER;
|
||||
|
||||
/**
|
||||
* Filter type for the sessionGetList call
|
||||
*/
|
||||
typedef enum {
|
||||
SESSION_LIST_ALL,
|
||||
SESSION_LIST_CONNECTION
|
||||
} SESSIONLISTFILTER;
|
||||
|
||||
/**
|
||||
* The session status block
|
||||
*
|
||||
@ -167,5 +176,5 @@ bool session_link_dcb(SESSION *, struct dcb *);
|
||||
SESSION* get_session_by_router_ses(void* rses);
|
||||
void session_enable_log(SESSION* ses, logfile_id_t id);
|
||||
void session_disable_log(SESSION* ses, logfile_id_t id);
|
||||
|
||||
RESULTSET *sessionGetList(SESSIONLISTFILTER);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user