Exemplo n.º 1
0
/**
 * Callout queue periodic event to synchronize persistent DB.
 */
static bool
stable_sync(void *unused_obj)
{
	(void) unused_obj;

	dbstore_sync(db_lifedata);
	return TRUE;		/* Keep calling */
}
Exemplo n.º 2
0
/**
 * Callout queue periodic event to synchronize persistent DB.
 */
static gboolean
stable_sync(gpointer unused_obj)
{
    (void) unused_obj;

    dbstore_sync(db_lifedata);
    return TRUE;		/* Keep calling */
}
Exemplo n.º 3
0
/**
 * Fully synchronize DBMW database: flush local cache, then the SDBM layer.
 */
void
dbstore_sync_flush(dbmw_t *dw)
{
	dbstore_flush(dw);		/* Flush cached dirty values... */
	dbstore_sync(dw);		/* ...then sync database layer */
}