more synchronized in BLOBHeap (will not fix problem with Runtime-Error as reported in forum)

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5487 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 16 years ago
parent 0afce376d7
commit cb76d9e0e4

@ -200,7 +200,7 @@ public final class kelondroBLOBHeap extends kelondroBLOBHeapModifier implements
* @return the size of the BLOB or -1 if the BLOB does not exist
* @throws IOException
*/
public long length(byte[] key) throws IOException {
public synchronized long length(byte[] key) throws IOException {
assert index.row().primaryKeyLength == key.length : index.row().primaryKeyLength + "!=" + key.length;
// check the buffer
@ -394,7 +394,7 @@ public final class kelondroBLOBHeap extends kelondroBLOBHeapModifier implements
return super.keys(up, firstKey);
}
public long length() throws IOException {
public synchronized long length() throws IOException {
return super.length() + this.buffersize;
}

Loading…
Cancel
Save