Bugzilla – Attachment 37636 Details for
Bug 13606
Batch modification for records is limited to ~500
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposal to clear the job session data at the end of the process
0001-Bug-13606-Clear-job-data-in-session-when-the-job-is-.patch (text/plain), 1.45 KB, created by
Frédéric Demians
on 2015-04-10 06:50:49 UTC
(
hide
)
Description:
Proposal to clear the job session data at the end of the process
Filename:
MIME Type:
Creator:
Frédéric Demians
Created:
2015-04-10 06:50:49 UTC
Size:
1.45 KB
patch
obsolete
>From b7f13e0748e2cac5b50455ed511e967d348c0564 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demians?= <f.demians@tamil.fr> >Date: Fri, 10 Apr 2015 08:44:39 +0200 >Subject: [PATCH] Bug 13606 Clear job data in session when the job is completed > >To test: > >- Batch modify a large set of biblio records >- During the modification process, do some SELECT in the session table. You > will see the Job data increasing. >- At the end of the process, do a last SELECT: job data has disappear. >--- > C4/BackgroundJob.pm | 19 +++++++++++++++++++ > tools/batch_record_modification.pl | 1 + > 2 files changed, 20 insertions(+) > >diff --git a/C4/BackgroundJob.pm b/C4/BackgroundJob.pm >index 3ab5125..c0a8dc4 100644 >--- a/C4/BackgroundJob.pm >+++ b/C4/BackgroundJob.pm >@@ -300,6 +300,25 @@ sub get { > return $self->{extra_values}->{$key}; > } > >+ >+=head2 clear >+ >+=over 4 >+ >+=item $job->clear(); >+ >+=back >+ >+Clear the job from the current session. >+ >+=cut >+ >+sub clear { >+ my $self = shift; >+ get_session($self->{sessionID})->clear('job_' . $self->{jobID}); >+} >+ >+ > 1; > __END__ > >diff --git a/tools/batch_record_modification.pl b/tools/batch_record_modification.pl >index beb2b4c..f275088 100755 >--- a/tools/batch_record_modification.pl >+++ b/tools/batch_record_modification.pl >@@ -62,6 +62,7 @@ if ( $completedJobID ) { > view => 'report', > ); > output_html_with_http_headers $input, $cookie, $template->output; >+ $job->clear(); > exit; > } > >-- >2.3.5 >
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 13606
:
35444
|
35445
|
37597
|
37601
|
37621
|
37627
|
37633
|
37634
|
37635
|
37636
|
37637
|
37648
|
37658
|
37660
|
37662
|
37663
|
37664
|
38058
|
38059
|
38060
|
38061
|
38431