Bugzilla – Attachment 106466 Details for
Bug 24153
Add a confirm flag to the cleanup_database.pl cronjob
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24153: Remove warning for message queue
Bug-24153-Remove-warning-for-message-queue.patch (text/plain), 1.35 KB, created by
Marcel de Rooy
on 2020-07-02 08:37:10 UTC
(
hide
)
Description:
Bug 24153: Remove warning for message queue
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2020-07-02 08:37:10 UTC
Size:
1.35 KB
patch
obsolete
>From e96f2fed0bbcd444ec4f7b3dbdb0cc46e979abf7 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 23 Jun 2020 12:19:09 +0200 >Subject: [PATCH] Bug 24153: Remove warning for message queue >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > misc/cronjobs/cleanup_database.pl | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/misc/cronjobs/cleanup_database.pl b/misc/cronjobs/cleanup_database.pl >index a89211fffb..47fb1b05a5 100755 >--- a/misc/cronjobs/cleanup_database.pl >+++ b/misc/cronjobs/cleanup_database.pl >@@ -280,6 +280,7 @@ if ($zebraqueue_days) { > > if ($mail) { > print "Mail queue purge triggered for $mail days.\n" if $verbose; >+ $count = 0; > $sth = $dbh->prepare( > q{ > DELETE FROM message_queue >@@ -289,8 +290,10 @@ if ($mail) { > if ( $confirm ) { > $sth->execute($mail) or die $dbh->errstr; > $count = $sth->rows; >+ print "$count messages were deleted from the mail queue.\nDone with message_queue purge.\n" if $verbose; >+ } else { >+ print "Messages were deleted from the mail queue.\nDone with message_queue purge.\n" if $verbose; > } >- print "$count messages were deleted from the mail queue.\nDone with message_queue purge.\n" if $verbose; > } > > if ($purge_merged) { >-- >2.11.0
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 24153
:
95980
|
97256
|
101300
|
106197
|
106252
|
106253
|
106254
|
106327
|
106328
|
106329
|
106330
|
106331
|
106332
|
106333
|
106334
|
106335
|
106336
|
106465
| 106466 |
106467
|
106468
|
106469
|
106470