[FOLLOWUP][BUGFIX] Reestablish DB connection in long-running tasks 93/42893/9
authorMarkus Klein <markus.klein@typo3.org>
Thu, 27 Aug 2015 17:07:04 +0000 (19:07 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Mon, 7 Sep 2015 18:25:41 +0000 (20:25 +0200)
commit92bae6eb55f94fecf94ab94ce140f887134a3fb5
treef7bb24028ab231faaf938db029591ac9eb693dd1
parentab5497b924fe929063bb9aff7af097863d1b099e
[FOLLOWUP][BUGFIX] Reestablish DB connection in long-running tasks

Reconnecting in isConnected() is not necessary as the next query() will
check the status and reconnect properly if required. Using ping() does
not work with mysqlnd - only if mysqli.reconnect=1 is set. Setting this
is bad practice since a ping() would only reconnect but not properly
reinitialize the charset etc.

Thus a check in Install Tool is added to make sure mysqli.reconnect is
set to "0".

Resolves: #69001
Resolves: #69289
Releases: master, 6.2
Change-Id: I3c2cac91e96fdee8bff113f848341856ec51829b
Reviewed-on: http://review.typo3.org/42893
Reviewed-by: Stephan GroƟberndt <stephan@grossberndt.de>
Reviewed-by: Alexander Opitz <opitz.alexander@googlemail.com>
Tested-by: Alexander Opitz <opitz.alexander@googlemail.com>
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/core/Classes/Core/SystemEnvironmentBuilder.php
typo3/sysext/core/Classes/Database/DatabaseConnection.php
typo3/sysext/install/Classes/SystemEnvironment/Check.php
typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php