MariaDB 10.2 now ships with libmariadb instead of libmysqlclient as a client library. While the API stayed compatible, there was a behavior change regarding connection initialization.
mysql_server_init (and mysql_library_init) are now inside a pthread_once call. This means that in a threaded environment, once one thread calls mysql_server_end, a later call to mysql_server_init does nothing and connections are no longer initialized.
According to upstream (MariaDB Bug Report), mysql_server_end should only be called when the application terminates, not as it is now when the number of connections drops to 0.
An example applications exhibiting this problem is akonadi (Bug report).
|For Gerrit Dashboard: QTBUG-63108|
|205874,3||Only call mysql_library_end() once when using MariaDB||5.9||qt/qtbase||Status: MERGED||+2||0|