Open-source multiplayer game server compatible with the RuneScape client
https://www.openrs2.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
490 B
15 lines
490 B
package dev.openrs2.db
|
|
|
|
import java.sql.SQLException
|
|
|
|
/**
|
|
* A vendor-neutral [DeadlockDetector], which considers every [SQLException] to
|
|
* be a deadlock. One of the vendor-specific implementations should be used if
|
|
* possible, which will prevent non-deadlock errors (such as unique constraint
|
|
* violations) from being needlessly retried.
|
|
*/
|
|
public object DefaultDeadlockDetector : DeadlockDetector {
|
|
override fun isDeadlock(ex: SQLException): Boolean {
|
|
return true
|
|
}
|
|
}
|
|
|