<div dir="auto"><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Feb 14, 2021, 02:23 Stephen Worthington <<a href="mailto:stephen_agent@jsw.gen.nz" target="_blank" rel="noreferrer">stephen_agent@jsw.gen.nz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sun, 14 Feb 2021 08:35:44 +0100, you wrote:<br>
<br> <br>
Yes, but any time mythbackend crashes, there is the possibility it did<br>
it in the middle of a database operation.  So there is the possibility<br>
that a table is crashed.  A worse but virtually impossible to detect<br>
error is also possible, where it updated one table (eg recorded) but<br>
failed to update the matching data in another table (eg<br>
recordedprogram, recordedseek).</blockquote></div></div><div dir="auto"><br></div><div dir="auto">Does this operation not exist within a START TRANSACTION ... COMMIT statement?</div><div dir="auto">If not,why not?</div><div dir="auto"><br></div><div dir="auto">A transaction in this case would completely eliminate the error you propose.</div><div dir="auto"><br></div><div dir="auto">Mike</div><div dir="auto"><br></div></div>