/* * Write data buffer to the data store. */ static HB_ERRCODE hb_sdfFlush( SDFAREAP pArea ) { HB_ERRCODE errCode; HB_TRACE( HB_TR_DEBUG, ( "hb_sdfFlush(%p)", pArea ) ); errCode = SELF_GOCOLD( &pArea->area ); if( pArea->fFlush && hb_setGetHardCommit() ) { hb_fileCommit( pArea->pFile ); pArea->fFlush = HB_FALSE; } return errCode; }
/* * Write data buffer to the data store. */ static HB_ERRCODE hb_delimFlush( DELIMAREAP pArea ) { HB_ERRCODE uiError; HB_TRACE(HB_TR_DEBUG, ("hb_delimFlush(%p)", pArea)); uiError = SELF_GOCOLD( ( AREAP ) pArea ); if( pArea->fFlush ) { hb_fileWriteAt( pArea->pFile, ( BYTE * ) "\032", 1, pArea->ulFileSize ); if( hb_setGetHardCommit() ) { hb_fileCommit( pArea->pFile ); pArea->fFlush = FALSE; } } return uiError; }
/* * Write data buffer to the data store. */ static HB_ERRCODE hb_sdfFlush( SDFAREAP pArea ) { HB_ERRCODE errCode; HB_TRACE( HB_TR_DEBUG, ( "hb_sdfFlush(%p)", pArea ) ); errCode = SELF_GOCOLD( &pArea->area ); if( pArea->fFlush ) { if( hb_setGetEOF() ) hb_fileWriteAt( pArea->pFile, "\032", 1, pArea->nFileSize ); if( hb_setGetHardCommit() ) { hb_fileCommit( pArea->pFile ); pArea->fFlush = HB_FALSE; } } return errCode; }