mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-17 19:00:25 +08:00
重启时保留-shm,-wal文件
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user