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:
Axel Dörfler 2012-03-31 15:45:21 +02:00
parent 55e5a42d73
commit 657e62d222

View File

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