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:
@@ -1812,8 +1812,10 @@ BPlusTree::_RemoveDuplicate(Transaction& transaction,
|
|||||||
return B_BAD_DATA;
|
return B_BAD_DATA;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (array->Remove(value))
|
if (array->Remove(value)) {
|
||||||
|
arrayCount--;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if ((duplicateOffset = duplicate->RightLink()) == BPLUSTREE_NULL)
|
if ((duplicateOffset = duplicate->RightLink()) == BPLUSTREE_NULL)
|
||||||
RETURN_ERROR(B_ENTRY_NOT_FOUND);
|
RETURN_ERROR(B_ENTRY_NOT_FOUND);
|
||||||
|
|||||||
Reference in New Issue
Block a user