[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 10 15:12:50 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 #40063|0                           |1
        is obsolete|                            |

--- Comment #2 from Fridolin SOMERS <fridolyn.somers at biblibre.com> ---
Created attachment 40065
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=40065&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.

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