重启时保留-shm,-wal文件

This commit is contained in:
GoEdgeLab
2022-09-09 09:34:00 +08:00
parent 36f424331f
commit acdaad7fc3
2 changed files with 0 additions and 4 deletions

View File

@@ -91,8 +91,6 @@ func (this *Task) Init() error {
}
var path = dir + "/metric." + types.String(this.item.Id) + ".db"
_ = os.Remove(path + "-shm")
_ = os.Remove(path + "-wal")
db, err := sql.Open("sqlite3", "file:"+path+"?cache=shared&mode=rwc&_journal_mode=WAL&_sync=OFF")
if err != nil {