use journal mode WAL for expand db use
This commit is contained in:
@@ -29,6 +29,8 @@ func (c *CronJob) Start(loc *time.Location, trafficAge int) error {
|
||||
}
|
||||
// Start core if it is not running
|
||||
c.cron.AddJob("@every 5s", NewCheckCoreJob())
|
||||
// database WAL checkpoint
|
||||
c.cron.AddJob("@every 10m", NewWALCheckpointJob())
|
||||
}()
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user