summaryrefslogtreecommitdiffstats
path: root/lib/private/appframework
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-08-26 03:56:37 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-08-26 03:56:37 +0200
commit534b2e407a80405c636b1ebd4486d01b9d3147bd (patch)
tree540fc589d148d8962b057b4914fbc59539251414 /lib/private/appframework
parentb45ae1b32e41951a879bdbbdbbe0cb04dd86cda1 (diff)
parent6f6a5f6c2981cd046abc0530c4b6a222e67f17a7 (diff)
downloadnextcloud-server-534b2e407a80405c636b1ebd4486d01b9d3147bd.tar.gz
nextcloud-server-534b2e407a80405c636b1ebd4486d01b9d3147bd.zip
Merge pull request #17662 from owncloud/locking-db
Database backend for locking
Diffstat (limited to 'lib/private/appframework')
-rw-r--r--lib/private/appframework/db/db.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/private/appframework/db/db.php b/lib/private/appframework/db/db.php
index cde85831687..8e3fa6e4197 100644
--- a/lib/private/appframework/db/db.php
+++ b/lib/private/appframework/db/db.php
@@ -154,6 +154,15 @@ class Db implements IDb {
}
/**
+ * Check if a transaction is active
+ *
+ * @return bool
+ */
+ public function inTransaction() {
+ return $this->connection->inTransaction();
+ }
+
+ /**
* Commit the database changes done during a transaction that is in progress
*/
public function commit() {