[mythtv-commits] mythtv commit: r25426 - in trunk/mythtv by mdean

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Mon Jul 26 01:21:11 UTC 2010


      Author: mdean
        Date: 2010-07-26 01:21:10 +0000 (Mon, 26 Jul 2010)
New Revision: 25426
   Changeset: http://svn.mythtv.org/trac/changeset/25426

Modified:

   trunk/mythtv/libs/libmyth/dbutil.cpp
   trunk/mythtv/libs/libmyth/dbutil.h
   trunk/mythtv/libs/libmythdb/exitcodes.h
   trunk/mythtv/programs/mythbackend/main_helpers.cpp
   trunk/mythtv/programs/mythtv-setup/main.cpp

Log:

Do a quick check of database tables on master backend and mythtv-setup startup.

This change causes the master mythbackend and mythtv-setup to check the database tables at application startup.  In the event one or more tables is not OK (crashed or errored), it will attempt to repair the tables.  If the repair succeeds, startup will continue.  Otherwise, the application will exit with a message indicating that the user should repair the database tables.

The quick check should pick up crashed tables caused by improperly closed data files.  Some classes of data errors won't be detected (checksum errors or incorrect links), but this should handle the majority of issues caused by crashed/killed mysqld server and full filesystems.  Note, also, that clients (mythfrontend, mythavtest, ...) and remote backends will not check database tables, since it is not unusual for them to be started and restarted many times while the master backend continues to run.





More information about the mythtv-commits mailing list