From 40888b561226004765ce158e922df6aca5dcfe70 Mon Sep 17 00:00:00 2001 From: chrislu Date: Thu, 28 Sep 2023 07:58:43 -0700 Subject: [PATCH] align 64bit atomic operation fix https://github.com/seaweedfs/seaweedfs/issues/4878 --- weed/util/lock_table.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/util/lock_table.go b/weed/util/lock_table.go index 2e689d330..bf3da7c37 100644 --- a/weed/util/lock_table.go +++ b/weed/util/lock_table.go @@ -10,9 +10,9 @@ import ( // LockTable is a table of locks that can be acquired. // Locks are acquired in order of request. type LockTable[T comparable] struct { + lockIdSeq int64 mu sync.Mutex locks map[T]*LockEntry - lockIdSeq int64 } type LockEntry struct {