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

@@ -642,18 +642,21 @@ Desc: Frees memory allocated to an initialized cursor. The cursor handle
FLMEXP RCODE FLMAPI FlmCursorFree(
HFCURSOR * phCursor)
{
CURSOR * pCursor = (CURSOR *)*phCursor;
F_LogMessage * pLogMsg = NULL;
CURSOR * pCursor = (CURSOR *)*phCursor;
IF_LogMessageClient * pLogMsg = NULL;
flmAssert( pCursor != NULL);
if( !gv_FlmSysData.pLogger)
{
return( FERR_OK);
}
// Log the query before getting rid of it
if ((pLogMsg = flmBeginLogMessage( FLM_QUERY_MESSAGE,
FLM_DEBUG_MESSAGE)) != NULL)
if ((pLogMsg = gv_FlmSysData.pLogger->beginMessage( FLM_QUERY_MESSAGE,
F_DEBUG_MESSAGE)) != NULL)
{
flmLogQuery( pLogMsg, 0, pCursor);
flmEndLogMessage( &pLogMsg);
f_endLogMessage( &pLogMsg);
}
if (!pCursor->pCSContext && gv_FlmSysData.uiMaxQueries)
@@ -668,7 +671,7 @@ FLMEXP RCODE FLMAPI FlmCursorFree(
*phCursor = HFCURSOR_NULL;
}
return FERR_OK;
return( FERR_OK);
}
/****************************************************************************