From ba78eb05bf80008bbd457239d198ba570e21f898 Mon Sep 17 00:00:00 2001 From: motodiary Date: Mon, 27 May 2024 13:29:32 +0800 Subject: [PATCH] add partition default value in job_table --- ...partition-default-value-in-job_table.patch | 25 +++++++++++++++++++ slurm.spec | 6 ++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 0029-add-partition-default-value-in-job_table.patch diff --git a/0029-add-partition-default-value-in-job_table.patch b/0029-add-partition-default-value-in-job_table.patch new file mode 100644 index 0000000..7fddfd5 --- /dev/null +++ b/0029-add-partition-default-value-in-job_table.patch @@ -0,0 +1,25 @@ +From 983d597c7d9c72897de71d20498a9d72e1289950 Mon Sep 17 00:00:00 2001 +From: motodiary +Date: Mon, 27 May 2024 10:18:20 +0800 +Subject: [PATCH] add partition default value in job_table + +--- + src/plugins/accounting_storage/pgsql/accounting_storage_pgsql.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/plugins/accounting_storage/pgsql/accounting_storage_pgsql.c b/src/plugins/accounting_storage/pgsql/accounting_storage_pgsql.c +index 40322fc..e079226 100755 +--- a/src/plugins/accounting_storage/pgsql/accounting_storage_pgsql.c ++++ b/src/plugins/accounting_storage/pgsql/accounting_storage_pgsql.c +@@ -1245,7 +1245,7 @@ extern int create_cluster_tables(pgsql_conn_t *pgsql_conn, char *cluster_name) + { "nodelist", "text", "" }, + { "nodes_alloc", "integer", "not null" }, + { "node_inx", "text", "" }, +- { "partition", "varchar", "not null" }, ++ { "partition", "varchar", "default ''|not null" }, + { "priority", "integer", "not null" }, + { "state", "integer", "not null" }, + { "timelimit", "bigint", "default 0|not null" }, +-- +2.33.0 + diff --git a/slurm.spec b/slurm.spec index a0d2647..9954f51 100644 --- a/slurm.spec +++ b/slurm.spec @@ -1,6 +1,6 @@ Name: slurm Version: 21.08.8 -%define rel 31 +%define rel 32 Release: %{rel}%{?dist} Summary: Slurm Workload Manager @@ -44,6 +44,7 @@ Patch25: 0025-Adjusting-the-commit-off-setting-position.patch Patch26: 0026-Remove-excess-double-quotes-in-assoc-table.patch Patch27: 0027-Adjusting-procedures.patch Patch28: 0028-modify-the-field-type-of-info-in-txn_table.patch +Patch29: 0029-add-partition-default-value-in-job_table.patch # build options .rpmmacros options change to default action # ==================== ==================== ======================== @@ -736,6 +737,9 @@ rm -rf %{buildroot} %systemd_postun_with_restart slurmdbd.service %changelog +* Mon May 27 2024 Xing Liu - 21.08.8-32 +- add partition default value in job_table + * Fri May 24 2024 Xing Liu - 21.08.8-31 - modify the field type of info in txn_table -- Gitee