diff options
author | Marc Alexander <admin@m-a-styles.de> | 2015-09-07 12:23:49 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2015-09-07 12:23:49 +0200 |
commit | ea594d00f750843997fcbbd829a64c8cc983fca2 (patch) | |
tree | 7a11d6fd26592c49c02810e29de537e2de925faf | |
parent | 9537ec56eb4c37cd4aec905c0db35d4b46e73ac6 (diff) | |
download | forums-ea594d00f750843997fcbbd829a64c8cc983fca2.tar forums-ea594d00f750843997fcbbd829a64c8cc983fca2.tar.gz forums-ea594d00f750843997fcbbd829a64c8cc983fca2.tar.bz2 forums-ea594d00f750843997fcbbd829a64c8cc983fca2.tar.xz forums-ea594d00f750843997fcbbd829a64c8cc983fca2.zip |
[ticket/13423] Set busyTimeout on connect to prevent db locking
PHPBB3-13423
-rw-r--r-- | phpBB/phpbb/db/driver/sqlite3.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/driver/sqlite3.php b/phpBB/phpbb/db/driver/sqlite3.php index 4e3e0d3329..cc3352af34 100644 --- a/phpBB/phpbb/db/driver/sqlite3.php +++ b/phpBB/phpbb/db/driver/sqlite3.php @@ -48,6 +48,7 @@ class sqlite3 extends \phpbb\db\driver\driver try { $this->dbo = new \SQLite3($this->server, SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE); + $this->dbo->busyTimeout(60000); $this->db_connect_id = true; } catch (\Exception $e) |