Db saving cases
This commit is contained in:
1 parent
294f0e8b98
commit
3663765284
4 files changed
+23
-3
No files matched your search
+12
-1
@@ -273,7 +273,18 @@ impl SyncState {
|
||||
.unwrap_or_else(|e| {
|
||||
error!("Ошибка при checkpoint WAL: {e}");
|
||||
});
|
||||
|
||||
connection
|
||||
.execute("VACUUM;", [])
|
||||
.unwrap_or_else(|e| {
|
||||
error!("Ошибка при checkpoint WAL: {e}");
|
||||
0
|
||||
});
|
||||
connection
|
||||
.execute("PRAGMA optimize;", [])
|
||||
.unwrap_or_else(|e| {
|
||||
error!("Ошибка при checkpoint WAL: {e}");
|
||||
0
|
||||
});
|
||||
connection.finish();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user