Merge pull request #3329 from owncloud/increase_lock_timeout

Set the SQLite database lock timeout to 60 seconds which is the default ...
remotes/origin/stable6
Bernhard Posselt 13 years ago
commit 1ec92b6377
  1. 2
      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) {

Loading…
Cancel
Save