b65c93b2b4
This PR introduces as sharded mutex within the ChainIndex#GetTipsetByHeight. It also replaces a go map with xsync.Map which doesn't require locking. The lock is taken when it appears that ChainIndex filling work should be started. After claiming the lock, the status of the cache is rechecked, if the entry is still missing, the fillCache is started. Thanks to @snissn and @arajasek for debugging and taking initial stabs at this. Supersedes #10866 and 10885 Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai> |
||
---|---|---|
.. | ||
basefee_test.go | ||
basefee.go | ||
checkpoint_test.go | ||
coalescer_test.go | ||
coalescer.go | ||
fts.go | ||
index_test.go | ||
index.go | ||
messages.go | ||
snapshot.go | ||
store_test.go | ||
store.go |