From be4a111708e5a7785c7ede1a3d0cd92293b9a73e Mon Sep 17 00:00:00 2001 From: motodiary Date: Sat, 11 May 2024 15:50:43 +0800 Subject: [PATCH] fix the default value type --- 0009-fix-the-default-value-type.patch | 25 +++++++++++++++++++++++++ slurm.spec | 6 +++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 0009-fix-the-default-value-type.patch diff --git a/0009-fix-the-default-value-type.patch b/0009-fix-the-default-value-type.patch new file mode 100644 index 0000000..f3e207a --- /dev/null +++ b/0009-fix-the-default-value-type.patch @@ -0,0 +1,25 @@ +From e406ed986efd2cb4226876f3f7449315af56c426 Mon Sep 17 00:00:00 2001 +From: motodiary +Date: Sat, 11 May 2024 15:39:49 +0800 +Subject: [PATCH] fix the default value type + +--- + 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 f5f3699..e0e1e4e 100755 +--- a/src/plugins/accounting_storage/pgsql/accounting_storage_pgsql.c ++++ b/src/plugins/accounting_storage/pgsql/accounting_storage_pgsql.c +@@ -1117,7 +1117,7 @@ extern int create_cluster_assoc_table( + { "creation_time", "bigint", "not null" }, + { "mod_time", "bigint", "default 0|not null" }, + { "deleted", "smallint", "default 0" }, +- { "is_def", "smallint", "default false|not null" }, ++ { "is_def", "smallint", "default 0|not null" }, + { "id_assoc", "serial", "not null" }, + { "user", "text", "not null|default ''" }, + { "acct", "text", "not null" }, +-- +2.33.0 + diff --git a/slurm.spec b/slurm.spec index 9eedfa9..347aca0 100644 --- a/slurm.spec +++ b/slurm.spec @@ -1,6 +1,6 @@ Name: slurm Version: 21.08.8 -%define rel 11 +%define rel 12 Release: %{rel}%{?dist} Summary: Slurm Workload Manager @@ -24,6 +24,7 @@ Patch5: 0005-replace-in-as_pgsql_jobacct_process.patch Patch6: 0006-add-return-value-SQL_NO_DATA-in-sql-api.patch Patch7: 0007-replace-and-in-sql-in-some-file.patch Patch8: 0008-change-sql-datatype.patch +Patch9: 0009-fix-the-default-value-type.patch # build options .rpmmacros options change to default action # ==================== ==================== ======================== @@ -716,6 +717,9 @@ rm -rf %{buildroot} %systemd_postun_with_restart slurmdbd.service %changelog +* Sat May 11 2024 Xing Liu - 21.08.8-12 +- fix the default value type + * Fri May 10 2024 Xing Liu - 21.08.8-11 - change sql datatype -- Gitee