aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-10-24 19:52:56 +0200
committerMorris Jobke <hey@morrisjobke.de>2014-10-24 19:52:56 +0200
commit63f2b1f460f71514902efba280cb1d0ce3a7f2c4 (patch)
treecc91592c6475cd838e4284b2ff48691fdac42327 /lib/private
parent9fa54831111bf64294ff292b05d0c8e65fea4d37 (diff)
parent9c1015b790560439b039c0cf7e162b316fe3a2f7 (diff)
downloadnextcloud-server-63f2b1f460f71514902efba280cb1d0ce3a7f2c4.tar.gz
nextcloud-server-63f2b1f460f71514902efba280cb1d0ce3a7f2c4.zip
Merge pull request #11767 from danbartram/add_db_rollback
Add missing DB rollback functionality
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/db.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/private/db.php b/lib/private/db.php
index 9b904a1518f..b820281b8a3 100644
--- a/lib/private/db.php
+++ b/lib/private/db.php
@@ -205,6 +205,13 @@ class OC_DB {
}
/**
+ * Rollback the database changes done during a transaction that is in progress
+ */
+ public static function rollback() {
+ return \OC::$server->getDatabaseConnection()->rollback();
+ }
+
+ /**
* saves database schema to xml file
* @param string $file name of file
* @param int $mode