Skip to content

Commit

Permalink
fix: use sum64 to avoid checkptr race bug (#2645)
Browse files Browse the repository at this point in the history
  • Loading branch information
lvrach authored Nov 3, 2022
1 parent 3659e12 commit 126cbdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/pgnotifier/pgnotifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ func GetCurrentSQLTimestamp() string {
// RunMaintenanceWorker (blocking - to be called from go routine) re-triggers zombie jobs
// which were left behind by dead workers in executing state
func (notifier *PgNotifierT) RunMaintenanceWorker(ctx context.Context) error {
maintenanceWorkerLockID := murmur3.Sum32([]byte(queueName))
maintenanceWorkerLockID := murmur3.Sum64([]byte(queueName))
maintenanceWorkerLock, err := pglock.NewLock(ctx, int64(maintenanceWorkerLockID), notifier.dbHandle)
if err != nil {
return err
Expand Down

0 comments on commit 126cbdf

Please sign in to comment.