mirror of https://gitee.com/bigwinds/arangodb
ensure proper shutdown of throttle (#4233)
This commit is contained in:
parent
b20212f7c1
commit
402ed9a99d
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue