[koha-commits] main Koha release repository branch new/bug_9066 created. v3.08.00-1221-g49c7d69
Git repo owner
gitmaster at git.koha-community.org
Tue Nov 20 13:08:04 CET 2012
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".
The branch, new/bug_9066 has been created
at 49c7d69561dcfccf36194a32a25962fa33df8c95 (commit)
- Log -----------------------------------------------------------------
commit 49c7d69561dcfccf36194a32a25962fa33df8c95
Author: Jared Camins-Esakov <jcamins at cpbibliography.com>
Date: Tue Nov 13 09:25:42 2012 -0500
Bug 9066: VirtualShelves db access not Plack+MariaDB compatible
The $dbh database handle in C4::VirtualShelves was declared at the
module level, which means under Plack it is initialized only once, when
the server first starts. With the default MySQL configuration this is
not a problem, since the MySQL connection does not time out, but the
MariaDB default configuration does time out, resulting in every page
that calls any sub in C4::VirtualShelves failing after a certain period.
This patch eliminates the module-level $dbh variable and replaces it
with $dbh handles in each subroutine that requires it.
To test:
Confirm that Virtual Shelves functionality still works as expected. The
problem is not reproducible when using Apache or Plack+MySQL, but if
everything works after the patch has been applied, the changes are safe.
Signed-off-by: Mason James <mtj at kohaaloha.com>
Signed-off-by: Paul Poulain <paul.poulain at biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins at cpbibliography.com>
-----------------------------------------------------------------------
hooks/post-receive
--
main Koha release repository
More information about the koha-commits
mailing list