<!DOCTYPE File PUBLIC "-//Liam Quin//DTD C API Documentation v1.1//EN" "doc.dtd"><File>
<Entry dir="liblqtext">
<Function File="../../src/liblqtext/pbcache.c">
<Name>LQT_FlushBlockCache</Name>
<Class>Database/Files, Database/Physical
<Purpose>
<P>Writes any pending dirty blocks to the disk.
Copies of the blocks are retained in memory, however, until
LQT_CloseDatabase is called, and will be found by LQT_BlockIsCached
and hence by LQT_ReadBlock if an attempt is made to read
them again.</P>
<P>When a database is opened, LQT_OpenDatabase adds LQT_FlushBlockCache
as an action to be performed automatically whenever the database
is flushed or closed.  It should not be necessary to call this code
directly from outside the library, and it is made available primarily
to aid in debugging.</P>
<Errors>
Fatal error (E_BUG) if the cache is dirty in read-only mode.
<SeeAlso>
LQT_AddActionOnClose
LQT_OpenDatabase
LQT_SyncDatabase
LQT_CloseDatabase
</Function>
<Decl>
LIBRARY int
LQT_FlushBlockCache(db)
    t_LQTEXT_Database *db;
</Decl>
</Entry>
