mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-25 01:57:53 +01:00
Shift SQLite to single session in thread pool (it isn't very thread
safe)
This commit is contained in:
parent
6ce6b4a07f
commit
0c34d5a5b5
@ -31,7 +31,7 @@ import org.dynmap.utils.BufferOutputStream;
|
|||||||
public class SQLiteMapStorage extends MapStorage {
|
public class SQLiteMapStorage extends MapStorage {
|
||||||
private String connectionString;
|
private String connectionString;
|
||||||
private String databaseFile;
|
private String databaseFile;
|
||||||
private static final int POOLSIZE = 5;
|
private static final int POOLSIZE = 1; // SQLite is really not thread safe... 1 at a time works best
|
||||||
private Connection[] cpool = new Connection[POOLSIZE];
|
private Connection[] cpool = new Connection[POOLSIZE];
|
||||||
private int cpoolCount = 0;
|
private int cpoolCount = 0;
|
||||||
private static final Charset UTF8 = Charset.forName("UTF-8");
|
private static final Charset UTF8 = Charset.forName("UTF-8");
|
||||||
|
Loading…
Reference in New Issue
Block a user