FLAIM Changes. Added support for HP-UX built with the native compiler (aCC). Added code to pre-extend the database file(s) when forcing a checkpoint.

git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@733 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
ahodgkinson
2006-08-03 19:24:27 +00:00
parent 828f7f8e65
commit 19c68c08bc
13 changed files with 80 additions and 32 deletions

View File

@@ -112,6 +112,7 @@ RCODE flmCreateNewFile(
RCODE rc = FERR_OK;
FDB * pDb = NULL;
FFILE * pFile;
FLMUINT uiMaxFileSize;
FLMBOOL bFileCreated = FALSE;
FLMBOOL bNewFile = FALSE;
FLMBOOL bMutexLocked = FALSE;
@@ -259,6 +260,15 @@ RCODE flmCreateNewFile(
flmAssert( !pDb->pSFileHdl);
flmAssert( pFile->FileHdr.uiVersionNum);
if( pFile->FileHdr.uiVersionNum >= FLM_FILE_FORMAT_VER_4_3)
{
uiMaxFileSize = gv_FlmSysData.uiMaxFileSize;
}
else
{
uiMaxFileSize = MAX_FILE_SIZE_VER40;
}
if( (pDb->pSFileHdl = f_new F_SuperFileHdl) == NULL)
{
@@ -285,8 +295,6 @@ RCODE flmCreateNewFile(
goto Exit;
}
pDb->pSFileHdl->setBlockSize( pFile->FileHdr.uiBlockSize);
// Create the .db file.
if( RC_BAD( rc = pDb->pSFileHdl->createFile( 0)))