summarylogtreecommitdiffstats
path: root/0006-sqlspam.patch
diff options
context:
space:
mode:
Diffstat (limited to '0006-sqlspam.patch')
-rw-r--r--0006-sqlspam.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/0006-sqlspam.patch b/0006-sqlspam.patch
new file mode 100644
index 000000000000..1882f0c6b988
--- /dev/null
+++ b/0006-sqlspam.patch
@@ -0,0 +1,12 @@
+--- core/src/dird/ua_prune.cc.orig 2021-12-23 12:29:52.844307700 +0100
++++ core/src/dird/ua_prune.cc 2021-12-23 14:58:31.874042423 +0100
+@@ -585,7 +585,9 @@ bail_out:
+
+ static void DropTempTables(UaContext* ua)
+ {
++ ua->db->SqlQuery("SET client_min_messages = warning");
+ ua->db->SqlQuery(BareosDb::SQL_QUERY::drop_deltabs);
++ ua->db->SqlQuery("SET client_min_messages = notice");
+ }
+
+ static bool CreateTempTables(UaContext* ua)