]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1441181 - Step 3 - Clear memory after each job, not before
authorDylan William Hardison <dylan@hardison.net>
Tue, 6 Mar 2018 00:32:08 +0000 (19:32 -0500)
committerGitHub <noreply@github.com>
Tue, 6 Mar 2018 00:32:08 +0000 (19:32 -0500)
Bugzilla/JobQueue.pm

index 661c1c49247aa745672960f8459bdf5dca5a9108..b3b54de79dd2428d57c2421cfe58691df46cc53f 100644 (file)
@@ -147,10 +147,11 @@ sub set_pidfile {
 # Clear the request cache at the start of each run.
 sub work_once {
     my $self = shift;
+    my $val = $self->SUPER::work_once(@_);
     Bugzilla::Hook::process('request_cleanup');
     Bugzilla::Bug->CLEANUP;
     Bugzilla->clear_request_cache();
-    return $self->SUPER::work_once(@_);
+    return $val;
 }
 
 # Never process more than MAX_MESSAGES in one batch, to avoid memory