feat: give the workspace-wide unibox plan allowance its own advisory lock namespace instead of sharing the warmup recipient lock's

This commit is contained in:
Matthew Meszaros
2026-10-15 15:29:34 +02:00
parent 6be59ae374
commit 28b7603fdd
+1 -1
View File
@@ -316,7 +316,7 @@ func checkManualSendPlan(ctx context.Context, tx pgx.Tx, task, org uuid.UUID, n,
if allowance <= 0 {
return nil
}
if _, err := tx.Exec(ctx, `SELECT pg_advisory_xact_lock(hashtextextended($1,273))`, org.String()); err != nil {
if _, err := tx.Exec(ctx, `SELECT pg_advisory_xact_lock(hashtextextended($1,274))`, org.String()); err != nil {
return err
}
var used int