tried to find the socket bug

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@300 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 20 years ago
parent 10781f36b7
commit 3be98f194d

File diff suppressed because it is too large Load Diff

@ -125,7 +125,7 @@ public class kelondroTree extends kelondroRecords implements Comparator {
}
// Returns the value to which this map maps the specified key.
public byte[][] get(byte[] key) throws IOException {
public synchronized byte[][] get(byte[] key) throws IOException {
//System.out.println("kelondroTree.get " + new String(key) + " in " + filename);
Search search = new Search(key);
if (search.found()) {
@ -298,7 +298,7 @@ public class kelondroTree extends kelondroRecords implements Comparator {
}
// Associates the specified value with the specified key in this map
public byte[][] put(byte[][] newrow) throws IOException {
public synchronized byte[][] put(byte[][] newrow) throws IOException {
if (newrow.length != columns()) throw new IllegalArgumentException("put: wrong row length " + newrow.length + "; must be " + columns());
// first try to find the key element in the database
Search searchResult = new Search(newrow[0]);
@ -546,7 +546,7 @@ public class kelondroTree extends kelondroRecords implements Comparator {
}
// Associates the specified value with the specified key in this map
public synchronized byte[] put(byte[] key, byte[] value) throws IOException {
public byte[] put(byte[] key, byte[] value) throws IOException {
byte[][] row = new byte[2][];
row[0] = key;
row[1] = value;
@ -571,7 +571,7 @@ public class kelondroTree extends kelondroRecords implements Comparator {
while (size() > 0) remove(lastNode(), null);
}
public void remove(Node node, Node parentOfNode) throws IOException {
private void remove(Node node, Node parentOfNode) throws IOException {
// there are three cases when removing a node
// - the node is a leaf - it can be removed easily
// - the node has one child - the child replaces the node
@ -1214,7 +1214,7 @@ public class kelondroTree extends kelondroRecords implements Comparator {
// Returns -1, 0, or 1 as the first argument
// is less than, equal to, or greater than the second.
// two arrays are also equal if one array is a subset of the other's array with filled-up char(0)-values
public synchronized int compare(byte[] a, byte[] b) {
public int compare(byte[] a, byte[] b) {
int i = 0;
int al = a.length;
int bl = b.length;

@ -402,11 +402,11 @@ xpstopw=true
50_localcrawl_busysleep=200
61_globalcrawltrigger_idlesleep=10000
61_globalcrawltrigger_busysleep=200
62_remotetriggeredcrawl_idlesleep=20000
62_remotetriggeredcrawl_idlesleep=10000
62_remotetriggeredcrawl_busysleep=200
70_cachemanager_idlesleep=10000
70_cachemanager_idlesleep=1000
70_cachemanager_busysleep=0
80_indexing_idlesleep=10000
80_indexing_idlesleep=1000
80_indexing_busysleep=0
90_cleanup_idlesleep=300000
90_cleanup_busysleep=300000

Loading…
Cancel
Save