Various message logging and async I/O changes.

git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@528 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
ahodgkinson
2006-06-06 22:49:49 +00:00
parent 6e5b224a5f
commit d64d1bc5c0
15 changed files with 126 additions and 1589 deletions

View File

@@ -372,12 +372,12 @@ FSTATIC RCODE flmInitNewFile(
// Initialize the database file header.
// Allocate a buffer to use - must be AT LEAST 2K.
uiBufSize = (FLMUINT)((uiBlkSize < 2048)
? (FLMUINT)2048
: (FLMUINT)uiBlkSize);
if (RC_BAD( rc = f_calloc( uiBufSize, &pBuf)))
if( RC_BAD( rc = f_allocAlignedBuffer( uiBufSize,
(void **)&pBuf)))
{
goto Exit;
}
@@ -388,10 +388,6 @@ FSTATIC RCODE flmInitNewFile(
goto Exit;
}
// Free the buffer before returning.
f_free( &pBuf);
// Allocate the pRfl object. Could not do this until this point
// because we need to have the version number, block size, etc.
// setup in the pFile->FileHdr.
@@ -438,7 +434,7 @@ Exit:
if (pBuf)
{
f_free( &pBuf);
f_freeAlignedBuffer( (void **)&pBuf);
}
if (bTransStarted)