Added hidden "disable-wal" database option (default: false)
This commit is contained in:
parent
92e030f3e8
commit
840eb3b4ee
2 changed files with 8 additions and 1 deletions
|
|
@ -302,7 +302,12 @@ public class Database extends Queue {
|
|||
private static void initializeTables(String prefix, Statement statement) {
|
||||
try {
|
||||
if (!Config.getGlobal().MYSQL) {
|
||||
statement.executeUpdate("PRAGMA journal_mode=WAL;");
|
||||
if (!Config.getGlobal().DISABLE_WAL) {
|
||||
statement.executeUpdate("PRAGMA journal_mode=WAL;");
|
||||
}
|
||||
else {
|
||||
statement.executeUpdate("PRAGMA journal_mode=DELETE;");
|
||||
}
|
||||
}
|
||||
|
||||
boolean lockInitialized = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue