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

This commit is contained in:
Mathias Fredriksson
2024-04-22 11:10:32 +00:00
committed by GitHub
parent 8a1216254e
commit 3adcccb618
2 changed files with 31 additions and 16 deletions
+1
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.