XFLAIM modifications to use FTK.

git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@383 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
ahodgkinson
2006-05-08 22:35:48 +00:00
parent 025fab1481
commit 0ffef299a0
122 changed files with 5397 additions and 68650 deletions

View File

@@ -70,7 +70,7 @@ RCODE F_BtResultSet::getBTree(
RCODE rc = NE_XFLM_OK;
FLMUINT uiCollHash;
BT_COLLECTION_XREF * pCollPtr = NULL;
F_RandomGenerator * pRandGen = NULL;
IF_RandomGenerator * pRandGen = NULL;
F_Database * pDatabase;
FLMUINT uiCollection;
@@ -106,14 +106,13 @@ RCODE F_BtResultSet::getBTree(
pDatabase = m_pResultSetDb->m_pDatabase;
// Will need a random number generator.
if (( pRandGen = f_new F_RandomGenerator) == NULL)
if( RC_BAD( rc = FlmAllocRandomGenerator( &pRandGen)))
{
rc = RC_SET( NE_XFLM_MEM);
goto Exit;
}
pRandGen->randomSetSeed( (FLMINT32)pSrcIxd->uiIndexNum);
pRandGen->setSeed( (FLMINT32)pSrcIxd->uiIndexNum);
// Allocate a new collection key context and create a new
// collection for it.
@@ -133,7 +132,7 @@ TryAgain:
// Randomly select a collection number to use.
uiCollection = pRandGen->randomChoice( 100, XFLM_MAX_COLLECTION_NUM);
uiCollection = pRandGen->getINT32( 100, XFLM_MAX_COLLECTION_NUM);
// Check to see if it already exists.
if (RC_BAD( rc = pDatabase->lFileCreate( m_pResultSetDb,