mirror of https://github.com/apache/lucene.git
applied fix for issue 536 to bdb code as well
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@394218 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
597b011b27
commit
9a451c8011
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue