mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/13423] Set busyTimeout on connect to prevent db locking
PHPBB3-13423
This commit is contained in:
parent
9537ec56eb
commit
ea594d00f7
1 changed files with 1 additions and 0 deletions
|
@ -48,6 +48,7 @@ class sqlite3 extends \phpbb\db\driver\driver
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$this->dbo = new \SQLite3($this->server, SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE);
|
$this->dbo = new \SQLite3($this->server, SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE);
|
||||||
|
$this->dbo->busyTimeout(60000);
|
||||||
$this->db_connect_id = true;
|
$this->db_connect_id = true;
|
||||||
}
|
}
|
||||||
catch (\Exception $e)
|
catch (\Exception $e)
|
||||||
|
|
Loading…
Add table
Reference in a new issue