mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
align 64bit atomic operation
fix https://github.com/seaweedfs/seaweedfs/issues/4878
This commit is contained in:
parent
abe599ee4a
commit
40888b5612
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue