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:
Andreas Vajda 2006-04-14 22:38:22 +00:00
parent 597b011b27
commit 9a451c8011
1 changed files with 4 additions and 2 deletions

View File

@ -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);
}