DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

(gdbm.info.gz) Sync

Info Catalog (gdbm.info.gz) Reorganization (gdbm.info.gz) Top (gdbm.info.gz) Errors
 
 Database Synchronization
 ************************
 
    Unless your database was opened with the GDBM_SYNC flag, `gdbm' does
 not wait for writes to be flushed to the disk before continuing.  This
 allows faster writing of databases at the risk of having a corrupted
 database if the application terminates in an abnormal fashion.  The
 following function allows the programmer to make sure the disk version
 of the database has been completely updated with all changes to the
 current time.
 
      gdbm_sync(dbf);
 
    The parameter is:
 
 GDBM_FILE dbf
      The pointer returned by `gdbm_open'.
 
    This would usually be called after a complete set of changes have
 been made to the database and before some long waiting time.
 `gdbm_close' automatically calls the equivalent of `gdbm_sync' so no
 call is needed if the database is to be closed immediately after the
 set of changes have been made.
 
Info Catalog (gdbm.info.gz) Reorganization (gdbm.info.gz) Top (gdbm.info.gz) Errors
automatically generated byinfo2html