bugfix for internal index entry generation

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2889 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 19 years ago
parent 493391e42d
commit fc2936d500

@ -142,8 +142,8 @@ public class indexURLEntry implements Cloneable, indexEntry {
public byte[] toEncodedByteArrayForm(boolean includeHash) { public byte[] toEncodedByteArrayForm(boolean includeHash) {
if (includeHash) return entry.bytes(); if (includeHash) return entry.bytes();
byte[] b = new byte[urlEntryRow.objectsize() - indexURL.urlLanguageLength]; byte[] b = new byte[urlEntryRow.objectsize() - indexURL.urlHashLength];
System.arraycopy(entry.bytes(), indexURL.urlLanguageLength, b, 0, b.length); System.arraycopy(entry.bytes(), indexURL.urlHashLength, b, 0, b.length);
return b; return b;
} }

Loading…
Cancel
Save