Skip to content

Commit 3caa520

Browse files
add comments.
1 parent 90f3b30 commit 3caa520

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

services/packages/arch/repository.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ func NewFileSign(ctx context.Context, ownerID int64, input io.Reader) (*packages
104104

105105
// BuildPacmanDB Create db signature cache
106106
func BuildPacmanDB(ctx context.Context, ownerID int64, group, arch string) error {
107+
// Prevent `update/delete` and `cron clean task` from running concurrently.
107108
lock, err := globallock.Lock(ctx, fmt.Sprintf("pkg_arch_db_%s", group))
108109
if err != nil {
109110
return err

0 commit comments

Comments
 (0)