Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

remove tables from tabletracker on close to avoid lots of dead entrys in /PerformanceMemory_p.html

sixcoolerb8cee9b7d844
diff --git a/source/net/yacy/kelondro/table/Table.java b/source/net/yacy/kelondro/table/Table.java
index 8630f35d2..2b652ad87 100644
--- a/source/net/yacy/kelondro/table/Table.java
+++ b/source/net/yacy/kelondro/table/Table.java
@@ -474,12 +474,17 @@ public class Table implements Index, Iterable<Row.Entry> {
@Override
public void close() {
- if (this.file != null) this.file.close();
+ String tablefile = null;
+ if (this.file != null) {
+ tablefile = this.file.filename().toString();
+ this.file.close();
+ }
this.file = null;
if (this.table != null) this.table.close();
this.table = null;
if (this.index != null) this.index.close();
this.index = null;
+ if (tablefile != null) tableTracker.remove(tablefile);
}
@Override