mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 12:46:44 +00:00
triedb/pathdb: no need lock
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
b45b0419d7
commit
c9cd48a8fb
1 changed files with 0 additions and 8 deletions
|
|
@ -335,7 +335,6 @@ func (l *lookup) addStorageNodes(state common.Hash, nodes map[common.Hash]map[st
|
|||
|
||||
var (
|
||||
wg sync.WaitGroup
|
||||
locks [storageNodesShardCount]sync.Mutex
|
||||
tasks = make([][]shardTask, storageNodesShardCount)
|
||||
)
|
||||
|
||||
|
|
@ -361,9 +360,6 @@ func (l *lookup) addStorageNodes(state common.Hash, nodes map[common.Hash]map[st
|
|||
return
|
||||
}
|
||||
|
||||
locks[shardIdx].Lock()
|
||||
defer locks[shardIdx].Unlock()
|
||||
|
||||
shard := l.storageNodes[shardIdx]
|
||||
for _, task := range taskList {
|
||||
key := makeTrienodeKey(task.accountHash, task.path)
|
||||
|
|
@ -477,7 +473,6 @@ func (l *lookup) removeStorageNodes(state common.Hash, nodes map[common.Hash]map
|
|||
|
||||
var (
|
||||
eg errgroup.Group
|
||||
locks [storageNodesShardCount]sync.Mutex
|
||||
tasks = make([][]shardTask, storageNodesShardCount)
|
||||
)
|
||||
|
||||
|
|
@ -501,9 +496,6 @@ func (l *lookup) removeStorageNodes(state common.Hash, nodes map[common.Hash]map
|
|||
return nil
|
||||
}
|
||||
|
||||
locks[shardIdx].Lock()
|
||||
defer locks[shardIdx].Unlock()
|
||||
|
||||
shard := l.storageNodes[shardIdx]
|
||||
for _, task := range taskList {
|
||||
key := makeTrienodeKey(task.accountHash, task.path)
|
||||
|
|
|
|||
Loading…
Reference in a new issue