2005-01-22 23:40 UTC+0300 Alexander Kresin <alex@belacy.belgorod.su>

This commit is contained in:
Alexander S.Kresin
2005-01-22 20:39:39 +00:00
parent 5dfdadc1ea
commit 36dacf4a3c
2 changed files with 6 additions and 2 deletions

View File

@@ -8,6 +8,10 @@
2002-12-01 23:12 UTC+0100 Foo Bar <foo.bar@foobar.org>
*/
2005-01-22 23:40 UTC+0300 Alexander Kresin <alex@belacy.belgorod.su>
* source/rdd/dbfntx/dbfntx1.c
! Yet another rare bug fixed.
2005-01-22 19:55 UTC+0300 Alexander Kresin <alex@belacy.belgorod.su>
* source/rdd/dbfntx/dbfntx1.c
! Bug fixed, which oocured in some rare situations while record updating.

View File

@@ -1602,7 +1602,7 @@ static void hb_ntxTagBalance( LPTAGINFO pTag, int level )
else
{
pPagePair = hb_ntxPageLoad( pTag, KEYITEM( pPageParent, pairkey )->page );
if( pPageParent->uiKeys == 1 &&
if( pPageParent->uiKeys == 1 && pPage->uiKeys && pPagePair->uiKeys &&
( pPage->uiKeys + pPagePair->uiKeys ) > pTag->MaxKeys - 2 )
{
hb_ntxPageRelease( pTag,pPageParent );
@@ -1633,7 +1633,7 @@ static void hb_ntxTagBalance( LPTAGINFO pTag, int level )
else
{
pPagePair = hb_ntxPageLoad( pTag, KEYITEM( pPageParent, pairkey )->page );
if( pPageParent->uiKeys == 1 &&
if( pPageParent->uiKeys == 1 && pPage->uiKeys && pPagePair->uiKeys &&
( pPage->uiKeys + pPagePair->uiKeys ) > pTag->MaxKeys - 2 )
{
hb_ntxPageRelease( pTag,pPageParent );