[MediaWiki-commits] [Gerrit] mediawiki...ShortUrl[master]: build: Updating mediawiki/mediawiki-codesniffer to 13.0.0

2017-09-24 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/380245 )

Change subject: build: Updating mediawiki/mediawiki-codesniffer to 13.0.0
..


build: Updating mediawiki/mediawiki-codesniffer to 13.0.0

Change-Id: Ie8f0c2f902678cddae5a63fe921c091f2c65ec8c
---
M ShortUrl.utils.php
M composer.json
M populateShortUrlTable.php
3 files changed, 4 insertions(+), 4 deletions(-)

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



diff --git a/ShortUrl.utils.php b/ShortUrl.utils.php
index 9fa4a70..c391e5d 100644
--- a/ShortUrl.utils.php
+++ b/ShortUrl.utils.php
@@ -29,7 +29,7 @@
 
$id = $wgMemc->get( $memcKey );
if ( !$id ) {
-   $id = wfGetDB( DB_SLAVE )->selectField(
+   $id = wfGetDB( DB_REPLICA )->selectField(
'shorturls',
'su_id',
[
@@ -92,7 +92,7 @@
$memcKey = wfMemcKey( 'shorturls', 'id', $id );
$entry = $wgMemc->get( $memcKey );
if ( !$entry ) {
-   $dbr = wfGetDB( DB_SLAVE );
+   $dbr = wfGetDB( DB_REPLICA );
$entry = $dbr->selectRow(
'shorturls',
[ 'su_namespace', 'su_title' ],
diff --git a/composer.json b/composer.json
index 1f40cca..9a19236 100644
--- a/composer.json
+++ b/composer.json
@@ -2,7 +2,7 @@
"require-dev": {
"jakub-onderka/php-parallel-lint": "0.9.2",
"jakub-onderka/php-console-highlighter": "0.3.2",
-   "mediawiki/mediawiki-codesniffer": "0.12.0"
+   "mediawiki/mediawiki-codesniffer": "13.0.0"
},
"scripts": {
"fix": "phpcbf",
diff --git a/populateShortUrlTable.php b/populateShortUrlTable.php
index 0577b7f..22f62e1 100644
--- a/populateShortUrlTable.php
+++ b/populateShortUrlTable.php
@@ -25,7 +25,7 @@
// @todo FIXME: Refactor out code in ShortUrl.functions.php so it can 
be used here
public function execute() {
$rowCount = 0;
-   $dbr = wfGetDB( DB_SLAVE );
+   $dbr = wfGetDB( DB_REPLICA );
 
$last_processed_id = 0;
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie8f0c2f902678cddae5a63fe921c091f2c65ec8c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ShortUrl
Gerrit-Branch: master
Gerrit-Owner: Libraryupgrader 
Gerrit-Reviewer: Umherirrender 
Gerrit-Reviewer: jenkins-bot <>

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] mediawiki...ShortUrl[master]: build: Updating mediawiki/mediawiki-codesniffer to 13.0.0

2017-09-23 Thread Libraryupgrader (Code Review)
Libraryupgrader has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/380245 )

Change subject: build: Updating mediawiki/mediawiki-codesniffer to 13.0.0
..

build: Updating mediawiki/mediawiki-codesniffer to 13.0.0

Change-Id: Ie8f0c2f902678cddae5a63fe921c091f2c65ec8c
---
M ShortUrl.utils.php
M composer.json
M populateShortUrlTable.php
3 files changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ShortUrl 
refs/changes/45/380245/1

diff --git a/ShortUrl.utils.php b/ShortUrl.utils.php
index 9fa4a70..c391e5d 100644
--- a/ShortUrl.utils.php
+++ b/ShortUrl.utils.php
@@ -29,7 +29,7 @@
 
$id = $wgMemc->get( $memcKey );
if ( !$id ) {
-   $id = wfGetDB( DB_SLAVE )->selectField(
+   $id = wfGetDB( DB_REPLICA )->selectField(
'shorturls',
'su_id',
[
@@ -92,7 +92,7 @@
$memcKey = wfMemcKey( 'shorturls', 'id', $id );
$entry = $wgMemc->get( $memcKey );
if ( !$entry ) {
-   $dbr = wfGetDB( DB_SLAVE );
+   $dbr = wfGetDB( DB_REPLICA );
$entry = $dbr->selectRow(
'shorturls',
[ 'su_namespace', 'su_title' ],
diff --git a/composer.json b/composer.json
index 1f40cca..9a19236 100644
--- a/composer.json
+++ b/composer.json
@@ -2,7 +2,7 @@
"require-dev": {
"jakub-onderka/php-parallel-lint": "0.9.2",
"jakub-onderka/php-console-highlighter": "0.3.2",
-   "mediawiki/mediawiki-codesniffer": "0.12.0"
+   "mediawiki/mediawiki-codesniffer": "13.0.0"
},
"scripts": {
"fix": "phpcbf",
diff --git a/populateShortUrlTable.php b/populateShortUrlTable.php
index 0577b7f..22f62e1 100644
--- a/populateShortUrlTable.php
+++ b/populateShortUrlTable.php
@@ -25,7 +25,7 @@
// @todo FIXME: Refactor out code in ShortUrl.functions.php so it can 
be used here
public function execute() {
$rowCount = 0;
-   $dbr = wfGetDB( DB_SLAVE );
+   $dbr = wfGetDB( DB_REPLICA );
 
$last_processed_id = 0;
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie8f0c2f902678cddae5a63fe921c091f2c65ec8c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ShortUrl
Gerrit-Branch: master
Gerrit-Owner: Libraryupgrader 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits