mirror of https://github.com/apache/activemq.git
Fixes AMQ-5404: LevelDB files not being released after deletion
This commit is contained in:
parent
4e63ee7cc7
commit
9de3fff1f5
|
@ -155,6 +155,12 @@ case class RecordLog(directory: File, logSuffix:String) {
|
|||
onDelete(info.file)
|
||||
onDelete(id)
|
||||
log_infos.remove(id)
|
||||
reader_cache.synchronized {
|
||||
val reader = reader_cache.remove(info.file);
|
||||
if( reader!=null ) {
|
||||
reader.release();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue