Speicherverbrauch reduzieren

parent 4ff1259e
......@@ -33,7 +33,7 @@ dependencies {
compile group: 'de.bsvrz.sys', name: 'de.bsvrz.sys.funclib.commandLineArgs', version: kernsoftware_version
compile group: 'de.bsvrz.sys', name: 'de.bsvrz.sys.funclib.communicationStreams', version: kernsoftware_version
compile group: 'de.bsvrz.sys', name: 'de.bsvrz.sys.funclib.kappich', version: kernsoftware_version
compile group: 'com.google.guava', name: 'guava', version: '21.0'
compile group: 'com.google.guava', name: 'guava', version: '27.1-jre'
// Abhängigkeiten Integrationstests
testCompile group: 'de.kappich.pat', name: 'de.kappich.pat.testumg', version: kernsoftware_version
......
......@@ -192,7 +192,7 @@ public class RestorePersDirTsk extends Task {
}
// maximale Archivzeit. Medien- und Container-ID ermitteln
DataIdentNode din = didTree.existsCreate(dataIdentification);
DataIdentNode din = new DataIdentNode(dataIdentification);
if(!din.indexesAssigned(archiveDataKind)) {
persMgr.assignIndexes(archiveDataKind, din);
}
......@@ -206,6 +206,7 @@ public class RestorePersDirTsk extends Task {
maxArchiveTime.updateAndGet(old -> Math.max(old, aTime));
maxMedienID.updateAndGet(old -> Math.max(old, medienID));
}
din.closeIndexes(archiveDataKind);
}
catch(Exception e) {
badDID.getAndIncrement();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment