Aaron Schulz has uploaded a new change for review.
https://gerrit.wikimedia.org/r/263855
Change subject: Use Maintenance DB transaction methods
......................................................................
Use Maintenance DB transaction methods
Change-Id: I8ddb36fef13d198f18e44cd954bc3a7925f13b02
---
M maintenance/updateCounts.php
1 file changed, 3 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Gather
refs/changes/55/263855/1
diff --git a/maintenance/updateCounts.php b/maintenance/updateCounts.php
index d04d7f5..1ceecb0 100644
--- a/maintenance/updateCounts.php
+++ b/maintenance/updateCounts.php
@@ -36,7 +36,7 @@
$maxGlId = 0;
do {
- $dbw->begin( __METHOD__ );
+ $this->beginTransaction( $dbw, __METHOD__ );
// This locks the list record. All operations which can
add/remove list items (apart
// from full list deletion) lock the record as well, so
there cannot be race conditions.
@@ -57,7 +57,7 @@
}
if ( !$ids ) {
- $dbw->rollback( __METHOD__ );
+ $this->rollbackTransaction( $dbw, __METHOD__ );
continue;
}
@@ -66,7 +66,7 @@
array( 'gl_id' => $ids ),
__METHOD__ );
- $dbw->commit( __METHOD__ );
+ $this->commitTransaction( $dbw, __METHOD__ );
$maxGlId = max( $ids );
wfWaitForSlaves();
--
To view, visit https://gerrit.wikimedia.org/r/263855
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8ddb36fef13d198f18e44cd954bc3a7925f13b02
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Gather
Gerrit-Branch: dev
Gerrit-Owner: Aaron Schulz <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits