chore: use alternative locking syntax that both MySQL and MariaDB support (#6462)

This commit is contained in:
Estelle Poulin
2026-10-12 19:59:21 -04:00
committed by GitHub
parent 2487db7c77
commit 2cd3d09391
+1 -1
View File
@@ -31,7 +31,7 @@ func (d *DB) UpsertReaction(ctx context.Context, upsert *store.Reaction) (*store
SELECT ?, memo.id, ?
FROM memo
WHERE memo.id = ?
FOR SHARE
LOCK IN SHARE MODE
`, upsert.CreatorID, upsert.ReactionType, upsert.MemoID)
if err != nil {
return nil, err