mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
core/state: avoid data race
This commit is contained in:
parent
68c0ec0815
commit
bb6888822d
1 changed files with 1 additions and 1 deletions
|
|
@ -1211,8 +1211,8 @@ func (s *StateDB) commit(deleteEmptyObjects bool) (*stateUpdate, error) {
|
||||||
}
|
}
|
||||||
lock.Lock()
|
lock.Lock()
|
||||||
updates[obj.addrHash] = update
|
updates[obj.addrHash] = update
|
||||||
lock.Unlock()
|
|
||||||
s.StorageCommits = time.Since(start) // overwrite with the longest storage commit runtime
|
s.StorageCommits = time.Since(start) // overwrite with the longest storage commit runtime
|
||||||
|
lock.Unlock()
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue