mirror of
https://review.haiku-os.org/haiku
synced 2025-02-01 11:15:59 +01:00
Fixed the invalid duplicate left over nodes.
* Accidently introduced that bug in r43837; the arrayCount variable was not being updated after the value got removed.
This commit is contained in:
parent
55e5a42d73
commit
657e62d222
@ -1812,8 +1812,10 @@ BPlusTree::_RemoveDuplicate(Transaction& transaction,
|
||||
return B_BAD_DATA;
|
||||
}
|
||||
|
||||
if (array->Remove(value))
|
||||
if (array->Remove(value)) {
|
||||
arrayCount--;
|
||||
break;
|
||||
}
|
||||
|
||||
if ((duplicateOffset = duplicate->RightLink()) == BPLUSTREE_NULL)
|
||||
RETURN_ERROR(B_ENTRY_NOT_FOUND);
|
||||
|
Loading…
x
Reference in New Issue
Block a user