git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@885 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 20 years ago
parent 4180c422e8
commit d666b61b83

@ -56,6 +56,7 @@ import de.anomic.server.serverDate;
import de.anomic.yacy.yacyCore; import de.anomic.yacy.yacyCore;
import de.anomic.yacy.yacySeed; import de.anomic.yacy.yacySeed;
import de.anomic.yacy.yacyNewsRecord; import de.anomic.yacy.yacyNewsRecord;
import de.anomic.yacy.yacyNewsPool;
public class News { public class News {
@ -95,7 +96,7 @@ public class News {
} }
yacyNewsRecord record; yacyNewsRecord record;
try { try {
if ((tableID == 2) || (tableID == 4)) { if ((tableID == yacyNewsPool.PROCESSED_DB) || (tableID == yacyNewsPool.PUBLISHED_DB)) {
yacyCore.newsPool.clear(tableID); yacyCore.newsPool.clear(tableID);
} else { } else {
while (yacyCore.newsPool.size(tableID) > 0) { while (yacyCore.newsPool.size(tableID) > 0) {

@ -267,7 +267,7 @@ public class yacyNewsPool {
// called if a published news shall be removed // called if a published news shall be removed
yacyNewsRecord record = fromqueue.remove(id); yacyNewsRecord record = fromqueue.remove(id);
if (record == null) return false; if (record == null) return false;
toqueue.push(record); if (toqueue != null) toqueue.push(record);
return true; return true;
} }

Loading…
Cancel
Save