forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lock-service: fix bug when closing rocksdb database (MystenLabs#2273)
Frequently when running tests we'll see test failures with the following error: libc++abi: Pure virtual function called! This is due to the fact that the thread part of the lock-service runs on may outlive the main thread leading to a race on closing the rocksdb database vs cleaning up the C++ runtime, causing this segfault to occur and preventing the database from being able to cleanly close. This is fixed by joining the thread handle for the spawned lock-service threads in the Drop impl of LockService.
- Loading branch information
Showing
1 changed file
with
67 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters