mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 02:07:12 +00:00
Truncate WAL
This commit is contained in:
parent
8162d8e0b3
commit
86bf62a758
1 changed files with 1 additions and 1 deletions
|
@ -2433,7 +2433,7 @@ public abstract class DB extends RoomDatabase {
|
|||
long start = new Date().getTime();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
SupportSQLiteDatabase sdb = db.getOpenHelper().getWritableDatabase();
|
||||
String mode = (BuildConfig.DEBUG || !BuildConfig.PLAY_STORE_RELEASE ? "RESTART" : "PASSIVE");
|
||||
String mode = (true ? "RESTART" : "PASSIVE");
|
||||
try (Cursor cursor = sdb.query("PRAGMA wal_checkpoint(" + mode + ");")) {
|
||||
if (cursor.moveToNext()) {
|
||||
for (int i = 0; i < cursor.getColumnCount(); i++) {
|
||||
|
|
Loading…
Reference in a new issue