Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
509dca81
Commit
509dca81
authored
10 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
Add debug_flags to the mysql_plugin
parent
e6c82988
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/plugins/accounting_storage/mysql/accounting_storage_mysql.c
+4
-0
4 additions, 0 deletions
...ugins/accounting_storage/mysql/accounting_storage_mysql.c
src/plugins/accounting_storage/mysql/accounting_storage_mysql.h
+4
-0
4 additions, 0 deletions
...ugins/accounting_storage/mysql/accounting_storage_mysql.h
with
8 additions
and
0 deletions
src/plugins/accounting_storage/mysql/accounting_storage_mysql.c
+
4
−
0
View file @
509dca81
...
@@ -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
()))
...
...
This diff is collapsed.
Click to expand it.
src/plugins/accounting_storage/mysql/accounting_storage_mysql.h
+
4
−
0
View file @
509dca81
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment