[mythtv-commits] mythtv commit: r23483 by mdean
mythtv at cvs.mythtv.org
mythtv at cvs.mythtv.org
Fri Feb 5 20:43:07 UTC 2010
Author: mdean
Date: 2010-02-05 20:43:07 +0000 (Fri, 05 Feb 2010)
New Revision: 23483
Changeset: http://svn.mythtv.org/trac/changeset/23483
Modified:
trunk/mythtv/libs/libmythdb/mythdb.cpp
Log:
Some settings are not meant to be overridden. Refuse to allow overriding the DBSchemaVer setting.
If we decide to do the same for other settings, we can easily move the approval to a separate function, but since (for now) we only have one disallowed override, this just adds the check inline. The check is performed in MythDB::OverrideSettingForSession() rather than in each application's main(), so the user will see log output such as:
2010-02-05 15:39:21.211 Setting 'DBSchemaVer' being forced to '1252'
2010-02-05 15:39:21.212 ERROR: Refusing to allow override for 'DBSchemaVer'.
(where the initial "Setting...being forced" comes from main()), but this should still be sufficient to alert the user to the fact that the override they specified is not allowed and was ignored.
More information about the mythtv-commits
mailing list