mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
fixed usage of ViewFile which needs a commit before showing latest crawl
result pages.
This commit is contained in:
parent
374d2e2a52
commit
1a92b61d69
|
@ -136,6 +136,9 @@ public class ViewFile {
|
|||
// get the urlEntry that belongs to the url hash
|
||||
//boolean ue = urlHash.length() > 0 && indexSegment.exists(ASCII.getBytes(urlHash));
|
||||
//if (ue) Log.logInfo("ViewFile", "exists(" + urlHash + ")");
|
||||
if (urlHash.length() > 0 && (urlEntry = indexSegment.fulltext().getMetadata(ASCII.getBytes(urlHash))) == null) {
|
||||
indexSegment.fulltext().commit(true);
|
||||
}
|
||||
if (urlHash.length() > 0 && (urlEntry = indexSegment.fulltext().getMetadata(ASCII.getBytes(urlHash))) != null) {
|
||||
// get the url that belongs to the entry
|
||||
if (urlEntry == null || urlEntry.url() == null) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user