aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-09-07 12:23:49 +0200
committerMarc Alexander <admin@m-a-styles.de>2015-09-07 12:23:49 +0200
commitea594d00f750843997fcbbd829a64c8cc983fca2 (patch)
tree7a11d6fd26592c49c02810e29de537e2de925faf
parent9537ec56eb4c37cd4aec905c0db35d4b46e73ac6 (diff)
downloadforums-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.php1
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)