We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0acea34 commit 089fc00Copy full SHA for 089fc00
src/MySqlConnector/Core/XaEnlistedTransaction.cs
@@ -43,7 +43,14 @@ private void ExecuteXaCommand(string statement)
43
{
44
using var cmd = Connection.CreateCommand();
45
cmd.CommandText = "XA " + statement + " " + m_xid;
46
- cmd.ExecuteNonQuery();
+ try
47
+ {
48
+ cmd.ExecuteNonQuery();
49
+ }
50
+ catch (MySqlException ex) when (ex.ErrorCode is MySqlErrorCode.XARBDeadlock)
51
52
+ // ignore deadlock when rolling back
53
54
}
55
56
private static int s_currentId;
0 commit comments