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 0000000000000000000000000000000000000000..7fddfd517abccc986ce112d9206e8feb94ad364b --- /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 a0d26478695490b9a4792bf761ae835ac7d877af..9954f5189bca228aede5ec34ea12bc250a28dec2 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