[mythtv-commits] mythtv commit: r21598 by mdean

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Sun Aug 30 22:06:55 UTC 2009


      Author: mdean
        Date: 2009-08-30 22:06:54 +0000 (Sun, 30 Aug 2009)
New Revision: 21598
   Changeset: http://cvs.mythtv.org/trac/changeset/21598

Modified:

   trunk/mythtv/libs/libmythtv/dbcheck.cpp

Log:

Add a pre-charset-conversion check for partially corrupt data and, if detected, stop the upgrade before any of the charset conversions occur to make fixing the data easier.

Partial corruption can be caused by switching the mythconverg database from a properly-configured MySQL server to an improperly-configured one or vice versa (most-commonly, for users who have, during their history of MythTV usage, switched distros).  This uses the same "check only a few representative columns" approach used to detect other corruption, so is not guaranteed to work.  (Moral of the story:  backup your database before upgrade.)





More information about the mythtv-commits mailing list