2002-04-08 16:15 UTC+0300 Alexander Kresin <alex@belacy.belgorod.su>
This commit is contained in:
@@ -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 )
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user