Bugzilla – Attachment 172547 Details for
Bug 34027
Add functionality to cleanup_database.pl to purge action logs in batches
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34027: (QA follow-up) Tidy for qa script
Bug-34027-QA-follow-up-Tidy-for-qa-script.patch (text/plain), 975 bytes, created by
Kyle M Hall (khall)
on 2024-10-08 18:00:52 UTC
(
hide
)
Description:
Bug 34027: (QA follow-up) Tidy for qa script
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2024-10-08 18:00:52 UTC
Size:
975 bytes
patch
obsolete
>From 188399abd0af0280f77080f56b6dd55b962b9fd2 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Tue, 8 Oct 2024 17:57:54 +0000 >Subject: [PATCH] Bug 34027: (QA follow-up) Tidy for qa script > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > misc/cronjobs/cleanup_database.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/misc/cronjobs/cleanup_database.pl b/misc/cronjobs/cleanup_database.pl >index 2aedddf8302..23be117cd3f 100755 >--- a/misc/cronjobs/cleanup_database.pl >+++ b/misc/cronjobs/cleanup_database.pl >@@ -402,7 +402,7 @@ if ($pZ3950) { > > if ($pLogs) { > print "Purging records from action_logs.\n" if $verbose; >- for (0..10000){ >+ for ( 0 .. 10000 ) { > $dbh->do(q{ INSERT INTO action_logs (user,timestamp) VALUES (52,"2022-01-01 09:00:00") }); > $dbh->do(q{ UPDATE action_logs SET timestamp = "2020-01-01 10:00:00" ORDER BY action_id DESC LIMIT 1 }); > } >-- >2.39.5 (Apple Git-154)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34027
:
152394
|
152395
|
167407
|
167408
|
167412
|
167413
|
167414
|
172506
|
172543
|
172544
|
172545
|
172546
|
172547