[mythtv] [mythtv-commits] mythtv commit: r17970 by nigel

Chris Pinkham cpinkham at bc2va.org
Tue Jul 29 05:16:16 UTC 2008

* On Tue Jul 29, 2008 at 04:52:20AM +0000, mythtv at cvs.mythtv.org wrote:
> Waits for schema lock to clear (like Chris added in [15979]),
> if expert mode is set, only waits if DB is being backed up or locked,
> corrects missing return (that might have caused unwanted auto upgrade).

DBUtil::lockSchema() only returns false if there was an error locking
the schemalock table.  If it tries to lock and is blocked by another
existing lock, then the SQL lock command blocks waiting for the lock
to succeed.

I don't think your code inside the "if (!lockSchema(query))" section
will ever get executed unless there's an error locking the table which
doesn't appear to be what you're expecting.


More information about the mythtv-dev mailing list