google/leveldb

Make background thread stoppable

オープン

#863 opened on 2020/12/18

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)C++ (8,199 件のフォーク)batch import
enhancementhelp wanted

Repository metrics

Stars
 (39,075 個のスター)
PR merge metrics
 (PR metrics pending)

説明

Hi,

Current version of LevelDB has detached background thread that can't be stopped and each environment calls std::abort() in destructor. This behavior prevents using of LevelDB in plugin dlls that can be started and stopped when main application still runs.

I think it is better to allow background thread to finish tasks in queue and then exit, when environment is being destroyed. That will make database loadable and unloadable.

コントリビューターガイド