Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

small change (Orbiter's wish)

borg-030047fce9020cdb
diff --git a/source/de/anomic/kelondro/index/RowSet.java b/source/de/anomic/kelondro/index/RowSet.java
index ab1651c5c..4c274ff23 100644
--- a/source/de/anomic/kelondro/index/RowSet.java
+++ b/source/de/anomic/kelondro/index/RowSet.java
@@ -96,11 +96,11 @@ public class RowSet extends RowCollection implements ObjectIndex, Iterable<Row.E
return index >= 0;
}
- public Row.Entry get(final byte[] key) {
+ public synchronized Row.Entry get(final byte[] key) {
return get(key, 0, key.length);
}
- private synchronized Row.Entry get(final byte[] key, final int astart, final int alength) {
+ private Row.Entry get(final byte[] key, final int astart, final int alength) {
final int index = find(key, astart, alength);
final Row.Entry entry = (index >= 0) ? get(index, true) : null;
return entry;
@@ -197,7 +197,7 @@ public class RowSet extends RowCollection implements ObjectIndex, Iterable<Row.E
return entry;
}
- private synchronized int find(final byte[] a, final int astart, final int alength) {
+ private int find(final byte[] a, final int astart, final int alength) {
// returns the chunknumber; -1 if not found
if (rowdef.objectOrder == null) return iterativeSearch(a, astart, alength, 0, this.chunkcount);