From 8abeaaf24a08a0e4ddc3cf62b060e42b612b21ba Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 16 Sep 2014 17:29:19 -0700 Subject: [PATCH] Made QueryPage use startAtomic() for trx handling Change-Id: I0a2e8e05c96dbc582ecc045876497737020f441a --- includes/specialpage/QueryPage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/specialpage/QueryPage.php b/includes/specialpage/QueryPage.php index ae0003dc18..c54dcc63df 100644 --- a/includes/specialpage/QueryPage.php +++ b/includes/specialpage/QueryPage.php @@ -324,7 +324,7 @@ abstract class QueryPage extends SpecialPage { 'qc_value' => $value ); } - $dbw->begin( __METHOD__ ); + $dbw->startAtomic( __METHOD__ ); # Clear out any old cached data $dbw->delete( 'querycache', array( 'qc_type' => $this->getName() ), $fname ); # Save results into the querycache table on the master @@ -336,7 +336,7 @@ abstract class QueryPage extends SpecialPage { $dbw->insert( 'querycache_info', array( 'qci_type' => $this->getName(), 'qci_timestamp' => $dbw->timestamp() ), $fname ); - $dbw->commit( __METHOD__ ); + $dbw->endAtomic( __METHOD__ ); } } catch ( DBError $e ) { if ( !$ignoreErrors ) { -- 2.20.1