[mythtv-commits] mythtv commit: r26225 by beirdo
mythtv at cvs.mythtv.org
mythtv at cvs.mythtv.org
Sat Sep 11 07:38:11 UTC 2010
Author: beirdo
Date: 2010-09-11 07:38:11 +0000 (Sat, 11 Sep 2010)
New Revision: 26225
Changeset: http://svn.mythtv.org/trac/changeset/26225
Log:
Make MSqlQuery.exec and .prepare more resiliant to disappearing MySQL
connections.
If the database connection is down on entry, it will try to
reconnect or fail.
If the .exec or .prepare call fails due to "MySQL server went away" (error code
2006), it will try to reconnect, and if that works, it will retry the call once.
This should keep the frontend and backend (et al) from going absolutely crazy
if the mysql server needs to be restarted for any reason. Previously, all
further queries would fail, requiring restarts.
Fixes #8903
Modified:
trunk/mythtv/libs/libmythdb/mythdbcon.cpp
trunk/mythtv/libs/libmythdb/mythdbcon.h
More information about the mythtv-commits
mailing list