Skip to content
Snippets Groups Projects
Commit 509dca81 authored by Danny Auble's avatar Danny Auble
Browse files

Add debug_flags to the mysql_plugin

parent e6c82988
No related branches found
No related tags found
No related merge requests found
...@@ -146,6 +146,8 @@ char *wckey_hour_table = "wckey_usage_hour_table"; ...@@ -146,6 +146,8 @@ char *wckey_hour_table = "wckey_usage_hour_table";
char *wckey_month_table = "wckey_usage_month_table"; char *wckey_month_table = "wckey_usage_month_table";
char *wckey_table = "wckey_table"; char *wckey_table = "wckey_table";
uint64_t debug_flags = 0;
static char *default_qos_str = NULL; static char *default_qos_str = NULL;
enum { enum {
...@@ -2098,6 +2100,8 @@ extern int init ( void ) ...@@ -2098,6 +2100,8 @@ extern int init ( void )
first = 0; first = 0;
debug_flags = slurm_get_debug_flags();
if (!slurmdbd_conf) { if (!slurmdbd_conf) {
char *cluster_name = NULL; char *cluster_name = NULL;
if (!(cluster_name = slurm_get_cluster_name())) if (!(cluster_name = slurm_get_cluster_name()))
......
...@@ -104,6 +104,7 @@ extern List as_mysql_cluster_list; ...@@ -104,6 +104,7 @@ extern List as_mysql_cluster_list;
extern List as_mysql_total_cluster_list; extern List as_mysql_total_cluster_list;
extern pthread_mutex_t as_mysql_cluster_list_lock; extern pthread_mutex_t as_mysql_cluster_list_lock;
extern uint64_t debug_flags;
typedef enum { typedef enum {
QOS_LEVEL_NONE, QOS_LEVEL_NONE,
...@@ -111,6 +112,9 @@ typedef enum { ...@@ -111,6 +112,9 @@ typedef enum {
QOS_LEVEL_MODIFY QOS_LEVEL_MODIFY
} qos_level_t; } qos_level_t;
#define DB_DEBUG(conn, fmt, ...) \
info("%d(%s:%d) "fmt, conn, THIS_FILE, __LINE__, ##__VA_ARGS__);
/*global functions */ /*global functions */
extern int check_connection(mysql_conn_t *mysql_conn); extern int check_connection(mysql_conn_t *mysql_conn);
extern char *fix_double_quotes(char *str); extern char *fix_double_quotes(char *str);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment