mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-24 11:01:54 +00:00
Check the correct serialization failure code when retrying transaction
This commit is contained in:
parent
4c1b4953c1
commit
ae11e4f798
1 changed files with 1 additions and 1 deletions
|
@ -2520,7 +2520,7 @@ where
|
|||
.as_database_error()
|
||||
.and_then(|error| error.code())
|
||||
.as_deref()
|
||||
== Some("hey") =>
|
||||
== Some("40001") =>
|
||||
{
|
||||
// Retry (don't break the loop)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue