mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-21 07:09:56 +01:00
Use the multi-threading option with H2.
This commit is contained in:
@@ -33,7 +33,7 @@ class H2Database extends JdbcDatabase {
|
|||||||
super(HASH_TYPE, BINARY_TYPE, COUNTER_TYPE, SECRET_TYPE);
|
super(HASH_TYPE, BINARY_TYPE, COUNTER_TYPE, SECRET_TYPE);
|
||||||
home = new File(config.getDataDirectory(), "db");
|
home = new File(config.getDataDirectory(), "db");
|
||||||
url = "jdbc:h2:split:" + home.getPath()
|
url = "jdbc:h2:split:" + home.getPath()
|
||||||
+ ";CIPHER=AES;DB_CLOSE_ON_EXIT=false";
|
+ ";CIPHER=AES;MULTI_THREADED=1;DB_CLOSE_ON_EXIT=false";
|
||||||
password = config.getPassword();
|
password = config.getPassword();
|
||||||
maxSize = config.getMaxSize();
|
maxSize = config.getMaxSize();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user