Skip to content

Commit

Permalink
sql: Remove unused group_jobs_restarted column
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Dec 29, 2023
1 parent 1828b05 commit 5149518
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 9 deletions.
5 changes: 1 addition & 4 deletions mxq_group.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "mx_util.h"
#include "mx_mysql.h"

#define GROUP_FIELDS_CNT 37
#define GROUP_FIELDS_CNT 36
#define GROUP_FIELDS \
" group_id," \
" group_name," \
Expand Down Expand Up @@ -40,7 +40,6 @@
" group_jobs_failed," \
" group_jobs_cancelled," \
" group_jobs_unknown," \
" group_jobs_restarted," \
" group_slots_running," \
" stats_max_sumrss," \
" stats_max_maxrss," \
Expand Down Expand Up @@ -91,8 +90,6 @@ static void bind_result_group_fields(struct mx_mysql_bind *result, struct mxq_gr
mx_mysql_bind_var(result, idx++, uint64, &(g->group_jobs_cancelled));
mx_mysql_bind_var(result, idx++, uint64, &(g->group_jobs_unknown));

mx_mysql_bind_var(result, idx++, uint64, &(g->group_jobs_restarted));

mx_mysql_bind_var(result, idx++, uint64, &(g->group_slots_running));

mx_mysql_bind_var(result, idx++, uint64, &(g->stats_max_sumrss));
Expand Down
2 changes: 0 additions & 2 deletions mxq_group.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ struct mxq_group {
uint64_t group_jobs_cancelled;
uint64_t group_jobs_unknown;

uint64_t group_jobs_restarted;

uint64_t group_slots_running;

uint64_t stats_max_sumrss;
Expand Down
2 changes: 0 additions & 2 deletions mysql/create_tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ CREATE TABLE IF NOT EXISTS mxq_group (
group_jobs_cancelled INT8 UNSIGNED NOT NULL DEFAULT 0,
group_jobs_unknown INT8 UNSIGNED NOT NULL DEFAULT 0,

group_jobs_restarted INT8 UNSIGNED NOT NULL DEFAULT 0,

group_slots_running INT8 UNSIGNED NOT NULL DEFAULT 0,

group_mtime TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
Expand Down
2 changes: 2 additions & 0 deletions mysql/migrate_017_remove_group_jobs_restarted.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE mxq_group
DROP COLUMN group_jobs_restarted;
1 change: 0 additions & 1 deletion web/pages/mxq/mxq.in
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,6 @@ group_jobs_finished : $o->{group_jobs_finished}
group_jobs_failed : $o->{group_jobs_failed}
group_jobs_cancelled : $o->{group_jobs_cancelled}
group_jobs_unknown : $o->{group_jobs_unknown}
group_jobs_restarted : $o->{group_jobs_restarted}
group_slots_running: : $o->{group_slots_running}
Expand Down

0 comments on commit 5149518

Please sign in to comment.