[mythtv-commits] mythtv/master commit: 906dc5820 by Daniel Kristjansson (daniel-kristjansson)
MythTV
noreply at mythtv.org
Thu Aug 18 14:17:13 UTC 2011
Author: Daniel Kristjansson <danielk at cuymedia.net>
Change Date: 2011-08-18T07:08:22-07:00
Push Date: 2011/08/18 07:17:04 -0700
Repository: mythtv
Branch: master
New Revision: 906dc582097db90cde153d6f42b5c5bd100a8bdb
Changeset: https://github.com/MythTV/mythtv/commit/906dc5820
Log:
Commit [42dfafead] removed a two second sleep in the DB logging startup, unfortunately this can cause DB logging to fail.
The problem is that a MSqlQuery created too soon can cause "Driver not loaded" errors, which don't go away once the MYSQL Qt driver is loaded. This commit recreates the MSqlQuery whenever logqmsg() fails, so that when this happens we will still be able to log to the DB once we manage to get a usable connection to the DB.
This also suppresses printing those error messages at startup & suppresses all DB logging DB errors for one second when it sees a DB error. There isn't much difference between the 1st DBError with logging and the 10,000th one, so this just limits us to logging one such error message per second.
Modified:
mythtv/libs/libmythbase/logging.cpp
mythtv/libs/libmythbase/logging.h
More information about the mythtv-commits
mailing list