mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
core/filtermaps: fix deadlock in writeFinishedMaps callback
This commit is contained in:
parent
666dbc19c6
commit
36a590baa7
1 changed files with 2 additions and 0 deletions
|
|
@ -392,7 +392,9 @@ func (r *mapRenderer) writeFinishedMaps(pauseCb func() bool) error {
|
||||||
}
|
}
|
||||||
// do not exit while in partially written state but do allow processing
|
// do not exit while in partially written state but do allow processing
|
||||||
// events and pausing while block processing is in progress
|
// events and pausing while block processing is in progress
|
||||||
|
r.f.indexLock.Unlock()
|
||||||
pauseCb()
|
pauseCb()
|
||||||
|
r.f.indexLock.Lock()
|
||||||
batch = r.f.db.NewBatch()
|
batch = r.f.db.NewBatch()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue