truncate WAL log on start
This commit is contained in:
parent
cec3c4891e
commit
dacfc57d11
1 changed files with 2 additions and 2 deletions
|
@ -278,8 +278,8 @@ pub fn open_upend<P: AsRef<Path>>(
|
|||
|
||||
let enable_wal_mode = true;
|
||||
pool.get().unwrap().execute(if enable_wal_mode {
|
||||
trace!("Enabling WAL journal mode");
|
||||
"PRAGMA journal_mode = WAL;"
|
||||
trace!("Enabling WAL journal mode & truncating WAL log...");
|
||||
"PRAGMA journal_mode = WAL;PRAGMA wal_checkpoint(TRUNCATE);"
|
||||
} else {
|
||||
trace!("Enabling TRUNCATE journal mode");
|
||||
"PRAGMA journal_mode = TRUNCATE;"
|
||||
|
|
Loading…
Reference in a new issue