[mythtv-users] Should I be locking tables if I change mythconverg data in a script?
Brad DerManouelian
myth at dermanouelian.com
Tue Mar 25 16:38:10 UTC 2008
On Mar 25, 2008, at 9:19 AM, nospam312 wrote:
> I currently run a script regularly to tidy up data in the mythconverg
> database. Currently I have no locking functionality in the script so
> I guess if myth tries to access the data at the same time as the
> script is updating some data things may go wrong.
What kind of stuff are you tidying up that isn't done automatically?
> Should my script have some locking/unlocking in it and if it should is
> there any examples of what I should be doing?
You should probably use mythshutdown to check the status of the
backend and only run your database stuff when it reports that it is
idle.
-Brad
More information about the mythtv-users
mailing list