jenkins-bot has submitted this change and it was merged.
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(-)
Approvals:
Alex Monk: Looks good to me, approved
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: I8ddb36fef13d198f18e44cd954bc3a7925f13b02
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Gather
Gerrit-Branch: dev
Gerrit-Owner: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Alex Monk <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits