From c1f9b1f7b1b77776192048005dcc66dcf3df2bfb Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sat, 27 Dec 2014 15:41:37 +0100 Subject: Update to MediaWiki 1.24.1 --- includes/DataUpdate.php | 126 ------------------------------------------------ 1 file changed, 126 deletions(-) delete mode 100644 includes/DataUpdate.php (limited to 'includes/DataUpdate.php') diff --git a/includes/DataUpdate.php b/includes/DataUpdate.php deleted file mode 100644 index 7b9ac281..00000000 --- a/includes/DataUpdate.php +++ /dev/null @@ -1,126 +0,0 @@ -beginTransaction(); - $open_transactions[] = $update; - } - - // do work - foreach ( $updates as $update ) { - $update->doUpdate(); - } - - // commit transactions - while ( count( $open_transactions ) > 0 ) { - $trans = array_pop( $open_transactions ); - $trans->commitTransaction(); - } - } catch ( Exception $ex ) { - $exception = $ex; - wfDebug( "Caught exception, will rethrow after rollback: " . $ex->getMessage() ); - } - - // rollback remaining transactions - while ( count( $open_transactions ) > 0 ) { - $trans = array_pop( $open_transactions ); - $trans->rollbackTransaction(); - } - - if ( $exception ) { - throw $exception; // rethrow after cleanup - } - } - -} -- cgit v1.2.3-54-g00ecf