[mythtv-users] Does mythfilldatabase need a lock?
Daniel Kristjansson
danielk at cuymedia.net
Sun Aug 6 16:51:23 UTC 2006
On Sat, 2006-08-05 at 22:21 -0400, Sam Varshavchik wrote:
> Suppose you want to run mythfilldatabase manually. That sounds reasonable
> to me. But suppose that, at the same time, housekeeping decided that now is
> also the time to run mythfilldatabase. So you've got two of them going.
>
> Are they going to step on each other toes? I've looked at the code; I
> haven't really studied it extensively, but I don't see anything that tells
> me this is _not_ going to be a problem. I considered, briefly, testing this
> scenario to see if it really breaks, but I took the easy way out, and
> quickly patched in a few lines that make mythfilldatabase acquire a lock
> file. That took less time that it would've taken to set up a full-fledged
> test scenario, but I'm wondering if I should've wasted any time at all…
This is really a mythtv-dev question, but yeah it really should
acquire a lock. It's on my TODO list for the EIT fixes since it
is running pretty much all the time and conflicts with
mythfilldatabase.
-- Daniel
More information about the mythtv-users
mailing list