Extracted from Pike v7.6 release 61 at 2005-12-30.
pike.ida.liu.se
[Top]
Mird
Mird.Glue
Mird.Glue.Mird

Method Mird.Glue.Mird()->sync_please()


Method sync_please

object sync()
object sync_please()

Description

Syncs the database; this flushes all eventual caches and frees all unused blocks.

sync() can only be called when there is no ongoing transactions. sync_please() sets a marker that the database should be synced when the last transaction is finished or cancelled, which will eventually sync the database.

The usage could be in a call_out-loop,

   [...]
   call_out(sync_the_database,5*60);
   [...]
void sync_the_database()
{
   call_out(sync_please,5*60);
   my_mird->sync_please();
}

Returns

the object being called