|
|
|
@ -574,6 +574,7 @@ public final class plasmaWordIndexCache implements plasmaWordIndexInterface {
|
|
|
|
|
return -container.size();
|
|
|
|
|
} else {
|
|
|
|
|
// the combined container will fit, read the container
|
|
|
|
|
try {
|
|
|
|
|
Iterator entries = entity.elements(true);
|
|
|
|
|
plasmaWordIndexEntry entry;
|
|
|
|
|
while (entries.hasNext()) {
|
|
|
|
@ -586,6 +587,12 @@ public final class plasmaWordIndexCache implements plasmaWordIndexInterface {
|
|
|
|
|
// integrate the container into the assortments; this will work
|
|
|
|
|
assortmentCluster.storeTry(wordhash, container);
|
|
|
|
|
return size;
|
|
|
|
|
} catch (kelondroException e) {
|
|
|
|
|
// database corrupted, we simply give up the database and delete it
|
|
|
|
|
try {entity.close();} catch (Exception ee) {} entity = null;
|
|
|
|
|
try {db.delete();} catch (Exception ee) {}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} finally {
|
|
|
|
|