[mythtv-users] Does mythfilldatabase need a lock?

Sam Varshavchik mrsam at courier-mta.com
Sun Aug 6 02:21:04 UTC 2006


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…





-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-users/attachments/20060805/c16d08ba/attachment.pgp 


More information about the mythtv-users mailing list