Browse Source

align 64bit atomic operation

fix https://github.com/seaweedfs/seaweedfs/issues/4878
pull/4880/head
chrislu 1 year ago
parent
commit
40888b5612
  1. 2
      weed/util/lock_table.go

2
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 {

Loading…
Cancel
Save