mirror of
https://github.com/apache/activemq.git
synced 2025-02-16 23:16:52 +00:00
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(info.file)
|
||||||
onDelete(id)
|
onDelete(id)
|
||||||
log_infos.remove(id)
|
log_infos.remove(id)
|
||||||
|
reader_cache.synchronized {
|
||||||
|
val reader = reader_cache.remove(info.file);
|
||||||
|
if( reader!=null ) {
|
||||||
|
reader.release();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user