Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

applied fix for issue 536 to bdb code as well

Andreas Vajda9a451c801196
diff --git a/contrib/db/bdb/src/java/org/apache/lucene/store/db/File.java b/contrib/db/bdb/src/java/org/apache/lucene/store/db/File.java
index 271ed33a933..15805ba0e49 100644
--- a/contrib/db/bdb/src/java/org/apache/lucene/store/db/File.java
+++ b/contrib/db/bdb/src/java/org/apache/lucene/store/db/File.java
@@ -217,11 +217,13 @@ public class File extends Object {
{
cursor.del(0);
+ outer:
while (cursor.get(cursorKey, cursorData,
- DbConstants.DB_NEXT | flags) != DbConstants.DB_NOTFOUND) {
+ DbConstants.DB_NEXT | flags) != DbConstants.DB_NOTFOUND)
+ {
for (int i = 0; i < bytes.length; i++)
if (bytes[i] != cursorBytes[i])
- return;
+ break outer;
cursor.del(0);
}