fix: replace named locks with Galera-compatible row locks
This commit is contained in:
1 parent
ee07866d1c
commit
65d16c2fc6
22 files changed
+314
-365
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user