[Koha-bugs] [Bug 14375] DBIx::Connector should be stored in C4::Context instead of dbh
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Jun 17 16:24:02 CEST 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14375
Fridolin SOMERS <fridolyn.somers at biblibre.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #40065|0 |1
is obsolete| |
--- Comment #4 from Fridolin SOMERS <fridolyn.somers at biblibre.com> ---
Created attachment 40244
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=40244&action=edit
Bug 14375 - DBIx::Connector should be stored in C4::Context instead of dbh
DBIx::Connector doc about $conn->dbh() indicates he will manage database
handler cache and reconnection :
http://search.cpan.org/perldoc?DBIx%3A%3AConnector#dbh
So C4::Context should not store dbh object but DBIx::Connector object and get
handler from it.
We experimented issues with SIP server, since its database connections will run
all day long.
Looks like DBIx::Connector manages very well the reconnection.
Note that mysql_enable_utf8 option is passed in DBIx::Connector creation so it
can be set again when the connector recreates a dbh.
This patch has to drop methods set_dbh() and restore_dbh() because they seem to
be impossible to implement with this changes.
Test plan :
- Check database connection does not fail for pages
- Check database connection does not fail for SIP Server
- One may check its ok with Plack
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list