2002-04-08 16:15 UTC+0300 Alexander Kresin <alex@belacy.belgorod.su>

This commit is contained in:
Alexander S.Kresin
2002-04-08 12:14:02 +00:00
parent 6bfb00c39a
commit 2f7081b977
2 changed files with 12 additions and 3 deletions

View File

@@ -7,6 +7,10 @@
For example:
2002-12-01 23:12 UTC+0100 Foo Bar <foo.bar@foobar.org>
*/
use compiler cache, set HB_CCACHE environment variable.
(export HB_CCACHE=ccache)
2002-04-10 13:22 UTC+0300 Alexander Kresin <alex@belacy.belgorod.su>
* source/rdd/dbfntx/dbfntx1.c
! Some fix for shared mode ( hb_ntxHeaderRead() function added )

View File

@@ -1869,8 +1869,13 @@ static void hb_ntxSortKeyEnd( LPTAGINFO pTag, LPNTXSORTINFO pSortInfo )
{
if( pSortInfo->nItems )
{
pSortInfo->pKey1 = pSortInfo->pKey2;
hb_ntxKeysSort( pSortInfo, &(pSortInfo->pKeyFirst), pSortInfo->pKeyTemp, pTag->KeyLength, !pTag->AscendKey, pTag->UniqueKey );
if( !pSortInfo->pKeyFirst )
pSortInfo->pKeyFirst = pSortInfo->pKeyTemp;
else
{
pSortInfo->pKey1 = pSortInfo->pKey2;
hb_ntxKeysSort( pSortInfo, &(pSortInfo->pKeyFirst), pSortInfo->pKeyTemp, pTag->KeyLength, !pTag->AscendKey, pTag->UniqueKey );
}
pSortInfo->nItems = 0;
}
}
@@ -2236,7 +2241,7 @@ static ERRCODE hb_ntxIndexCreate( LPNTXINDEX pIndex )
/* printf( "\nnParts=%d ulRecMax=%d",nParts,ulRecMax ); */
nParts = 1;
}
sortInfo.ulSqrt = floor( sqrt( ( double) ulRecMax ) );
sortInfo.ulSqrt = (ulRecMax>50)? floor( sqrt( ( double) ulRecMax ) ):ulRecMax;
}
else
sortInfo.sortBuffer = NULL;