How can I clear a transaction deadlock?

后端 未结 3 2061
小鲜肉
小鲜肉 2020-12-15 06:27

Using \'show engine innodb status\' I see that wordpress has two deadlocks. I\'d like to clear these up but I don\'t see an active process for either of these cmds (IE somet

3条回答
  •  星月不相逢
    2020-12-15 07:08

    I know this is old, but typically when you see something like this it's because a deadlock occurred and the app that triggered the deadlock has long since moved on -- the victim of the deadlock got warned and either failed, or logged an error or retried, and either way has moved on to other productive things. You usually don't need to do anything other than look into the cause of the deadlock and try and avoid future deadlocks, if you're writing the software. If you're just using the software (e.g. Wordpress if you don't work at Wordpress), you could report the deadlock as a possible bug.

提交回复
热议问题