mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-22 03:30:35 +00:00
8334b5f51a
This fixes a problem in the SizeConstrainedLRU. The SCLRU uses an underlying simple lru which is not thread safe. During the Get operation, the recentness of the accessed item is updated, so it is not a pure read-operation. Therefore, the mutex we need is a full mutex, not RLock. This PR changes the mutex to be a regular Mutex, instead of RWMutex, so a reviewer can at a glance see that all affected locations are fixed. |
||
---|---|---|
.. | ||
bitutil | ||
compiler | ||
fdlimit | ||
hexutil | ||
lru | ||
math | ||
mclock | ||
prque | ||
big.go | ||
bytes_test.go | ||
bytes.go | ||
debug.go | ||
format.go | ||
path.go | ||
size_test.go | ||
size.go | ||
test_utils.go | ||
types_test.go | ||
types.go |