Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

align 64bit atomic operation

chrislu40888b561226
diff --git a/weed/util/lock_table.go b/weed/util/lock_table.go
index 2e689d330f..bf3da7c37f 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 {