jenkins-bot has submitted this change and it was merged.

Change subject: Use the right DB in getOriginalEmail() instead of the sharedDb
......................................................................


Use the right DB in getOriginalEmail() instead of the sharedDb

Change-Id: I344cb6f115824d9c8f4da4b8ac9b6ae9e8aae5a4
---
M includes/ProcessBounceEmails.php
1 file changed, 3 insertions(+), 1 deletion(-)

Approvals:
  Hoo man: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/ProcessBounceEmails.php b/includes/ProcessBounceEmails.php
index d52ed91..16f7757 100644
--- a/includes/ProcessBounceEmails.php
+++ b/includes/ProcessBounceEmails.php
@@ -121,7 +121,8 @@
                // the required database.
                $wikiId = $failedUser['wikiId'];
                $rawUserId = $failedUser['rawUserId'];
-               $dbr = self::getBounceRecordDB( DB_SLAVE, $wikiId );
+               $lb = wfGetLB( $wikiId );
+               $dbr = $lb->getConnection( DB_SLAVE, array(), $wikiId );
 
                $res = $dbr->selectRow(
                        'user',
@@ -131,6 +132,7 @@
                        ),
                        __METHOD__
                );
+               wfGetLB( $wikiId )->reuseConnection( $dbr );
                if( $res !== false ) {
                        $rawEmail = $res->user_email;
                        return $rawEmail;

-- 
To view, visit https://gerrit.wikimedia.org/r/175003
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I344cb6f115824d9c8f4da4b8ac9b6ae9e8aae5a4
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/BounceHandler
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>
Gerrit-Reviewer: 01tonythomas <[email protected]>
Gerrit-Reviewer: Chad <[email protected]>
Gerrit-Reviewer: Hoo man <[email protected]>
Gerrit-Reviewer: Jgreen <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to