BTW: If you ever see this error being displayed and want it to go away, you can help by posting a comment... That will result in the cache being flushed and the page being regenerated -- odds are pretty good that it won't race two times in a row.
But I'll get to fixing the actual problem soon, I hope.
But I'll get to fixing the actual problem soon, I hope.
Okay, I believe that this error won't happen any more. I fixed my locking code. There were a couple problems in it: 1) I had to assign a key to every lock to be sure the right copy of the lock was being unlocked, and 2) I had to add a brief sleep to work around MySQL 4 optimizations.
If you see any more of these errors, please let me know.
race condition
Yes, this is a known race condition that I need to make time to address... I wrote locking code that I thought fixed this, but obviously not.
Hopefully I'll get to this soon.
quick fix
BTW: If you ever see this error being displayed and want it to go away, you can help by posting a comment... That will result in the cache being flushed and the page being regenerated -- odds are pretty good that it won't race two times in a row.
But I'll get to fixing the actual problem soon, I hope.
real fix
Okay, I believe that this error won't happen any more. I fixed my locking code. There were a couple problems in it: 1) I had to assign a key to every lock to be sure the right copy of the lock was being unlocked, and 2) I had to add a brief sleep to work around MySQL 4 optimizations.
If you see any more of these errors, please let me know.