1
0
Fork 0

ensure proper shutdown of throttle (#4233)

This commit is contained in:
Jan 2018-01-05 14:56:52 +01:00 committed by Max Neunhöffer
parent b20212f7c1
commit 402ed9a99d
1 changed files with 7 additions and 0 deletions

View File

@ -607,6 +607,13 @@ void RocksDBEngine::unprepare() {
}
if (_db) {
// turn off RocksDBThrottle, and release our pointers to it
if (nullptr != _listener.get()) {
_listener->StopThread();
_listener.reset();
_options.listeners.clear();
} // if
for (rocksdb::ColumnFamilyHandle* h : RocksDBColumnFamily::_allHandles) {
_db->DestroyColumnFamilyHandle(h);
}