foundry icon indicating copy to clipboard operation
foundry copied to clipboard

The snapshot service must wait to join the child thread on exit

Open sgkim126 opened this issue 5 years ago • 0 comments

https://github.com/CodeChain-io/codechain/blob/18e1e80af4503cfd4d06e9514e9f88370995abda/sync/src/snapshot/service.rs#L72 Currently, the snapshot service spawns a thread to use the db but doesn't wait for the end of the child thread when it exit. It can corrupt the db.

sgkim126 avatar Apr 26 '19 03:04 sgkim126