From 2cd3d09391df29faa4b62f954222c63f66cb03d0 Mon Sep 17 00:00:00 2001 From: Estelle Poulin Date: Mon, 12 Oct 2026 19:59:21 -0400 Subject: [PATCH] chore: use alternative locking syntax that both MySQL and MariaDB support (#6462) --- store/db/mysql/reaction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/db/mysql/reaction.go b/store/db/mysql/reaction.go index fb537f304..a31327258 100644 --- a/store/db/mysql/reaction.go +++ b/store/db/mysql/reaction.go @@ -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