[Pkg-owncloud-commits] [owncloud] 192/239: on mssql the schema migration sometimes fails due to an already existing transaction - error: 'New transaction is not allowed because there are other threads running in the session.' The solution is to simple reconnect to the database to start with a fresh connection

David Prévot taffit at moszumanska.debian.org
Fri Nov 29 01:32:36 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 4fbc2774ef4c1c8962ad9129e522e13a19938120
Author: Thomas Mueller <thomas.mueller at tmit.eu>
Date:   Sun Nov 24 23:13:23 2013 +0100

    on mssql the schema migration sometimes fails due to an already existing transaction - error: 'New transaction is not allowed because there are other threads running in the session.'
    The solution is to simple reconnect to the database to start with a fresh connection
---
 lib/private/db/mdb2schemamanager.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/private/db/mdb2schemamanager.php b/lib/private/db/mdb2schemamanager.php
index 416e2f5..6378c76 100644
--- a/lib/private/db/mdb2schemamanager.php
+++ b/lib/private/db/mdb2schemamanager.php
@@ -19,6 +19,8 @@ class MDB2SchemaManager {
 	 */
 	public function __construct($conn) {
 		$this->conn = $conn;
+		$this->conn->close();
+		$this->conn->connect();
 	}
 
 	/**

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list