diff options
author | Frank Karlitschek <frank@owncloud.org> | 2013-05-13 02:42:18 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2013-05-13 02:42:18 +0200 |
commit | 0e55accee2f0843681d0515ffcbd7d5f1970b825 (patch) | |
tree | a908de6212ae00c567639fe4d64c1799ddc0e191 /lib | |
parent | 665663432c63531341bb983e1e8d78dcd6a80db2 (diff) | |
download | nextcloud-server-0e55accee2f0843681d0515ffcbd7d5f1970b825.tar.gz nextcloud-server-0e55accee2f0843681d0515ffcbd7d5f1970b825.zip |
Set the SQLite database lock timeout to 60 seconds which is the default in PHP anyways. I don't know why the MDB2 driver has this hardcoded to 0.1 seconds. This potentially fixes a lot of SQLite database lock problems and stuck in maintainance mode during upgrade issues.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MDB2/Driver/sqlite3.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MDB2/Driver/sqlite3.php b/lib/MDB2/Driver/sqlite3.php index aef0eab9bf1..693ceffa01c 100644 --- a/lib/MDB2/Driver/sqlite3.php +++ b/lib/MDB2/Driver/sqlite3.php @@ -387,7 +387,7 @@ class MDB2_Driver_sqlite3 extends MDB2_Driver_Common $php_errormsg = ''; $this->connection = new SQLite3($database_file); if(is_callable(array($this->connection, 'busyTimeout'))) {//busy timout is only available in php>=5.3 - $this->connection->busyTimeout(100); + $this->connection->busyTimeout(60000); } $this->_lasterror = $this->connection->lastErrorMsg(); if (!$this->connection) { |