fix: replace named locks with Galera-compatible row locks
Test / test (push) Successful in 25m39s
Build and publish image / image (push) Successful in 16m16s

This commit is contained in:
bryanpedini committed 2026-11-20 16:27:15 +01:00
1 parent ee07866d1c
commit 65d16c2fc6
22 files changed
+314 -365

No files matched your search

+2 -2
View File
@@ -174,8 +174,8 @@ func (m *matrixSQL) userValues(u userRow) []driver.Value {
func (m *matrixSQL) exec(w *matrixWorld, query string, args []any) fdbResponse {
has := func(v string) bool { return strings.Contains(query, v) }
switch {
case has("GET_LOCK"), has("RELEASE_LOCK"):
return fdbResponse{rows: fdbRow(int64(1))}
case has("webui_locks"):
return fdbResponse{rowsAffected: 1}
case has("FROM `coredns_webui_users` u WHERE u.`id` = ?"):
id := args[0].(int64)
for _, u := range w.state.users {