[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mythtv-commits
Subject:    [mythtv-commits] mythtv commit: r17990 - in trunk/mythtv/libs by
From:       mythtv () cvs ! mythtv ! org
Date:       2008-07-31 4:41:04
Message-ID: 20080731044104.0DA2612E400D () cvs ! mythtv ! org
[Download RAW message or body]

      Author: nigel
        Date: 2008-07-31 04:41:03 +0000 (Thu, 31 Jul 2008)
New Revision: 17990
   Changeset: http://cvs.mythtv.org/trac/changeset/17990

Modified:

   trunk/mythtv/libs/libmyth/mythcontext.cpp
   trunk/mythtv/libs/libmythdb/mythdbcon.cpp

Log:

Tidy the "error reduction while DB bootstrapping" hacks:
1) Anduin's elegant Qt4 bug workaround (return an empty database in InitCon())
2) Instead of multiple checks throughout the database layer, simply use the
   impotent database returned by InitCon() (which luckily prints no errors)
3) Use the newish IgnoreDatabase() setting to decimate the number of lookups.

This could be tidied up further by having a bool to set/clear the impotence
(e.g. MSqlDatabase::SetPretendGoodDatabase(bool) ),
but for now this should be good enough, and saves a big recompile :-)



_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic