fix(coderd/database): reduce db load via dbpurge advisory locking (#13021)

This commit is contained in:
Mathias Fredriksson
2024-04-22 14:10:32 +03:00
committed by GitHub
parent 8a1216254e
commit 3adcccb618
2 changed files with 31 additions and 16 deletions

View File

@ -9,6 +9,7 @@ const (
LockIDDeploymentSetup = iota + 1
LockIDEnterpriseDeploymentSetup
LockIDDBRollup
LockIDDBPurge
)
// GenLockID generates a unique and consistent lock ID from a given string.