core/state: avoid data race (#29924)
This commit is contained in:
parent
682ae838b2
commit
125fb1ff58
|
@ -1211,8 +1211,8 @@ func (s *StateDB) commit(deleteEmptyObjects bool) (*stateUpdate, error) {
|
|||
}
|
||||
lock.Lock()
|
||||
updates[obj.addrHash] = update
|
||||
lock.Unlock()
|
||||
s.StorageCommits = time.Since(start) // overwrite with the longest storage commit runtime
|
||||
lock.Unlock()
|
||||
return nil
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue