feat: add mysql election logic (#5694)

* feat: add mysql election

* feat: add mysql election

* chore: fix deps

* chore: fix deps

* fix: duplicate container

* fix: duplicate setup for sqlness

* fix: call once

* fix: do not use NOWAIT for mysql 5.7

* chore: apply comments

* fix: no parallel sqlness for mysql

* chore: comments and minor revert

* chore: apply comments

* chore: apply comments

* chore: add  to table name

* ci: use 2 metasrv to detect election bugs

* refactor: better election logic

* chore: apply comments

* chore: apply comments

* feat: version check before startup
This commit is contained in:
Yohan Wal
2025-03-19 19:31:18 +08:00
committed by GitHub
parent 2431cd3bdf
commit 1dc4a196bf
17 changed files with 1059 additions and 44 deletions

View File

@@ -53,12 +53,7 @@ serde_yaml = "0.9"
snafu = { workspace = true }
sql = { workspace = true }
sqlparser.workspace = true
sqlx = { version = "0.8", features = [
"runtime-tokio-rustls",
"mysql",
"postgres",
"chrono",
] }
sqlx.workspace = true
store-api = { workspace = true }
strum.workspace = true
tinytemplate = "1.2"