[MediaWiki-commits] [Gerrit] mediawiki...RevisionCommentSupplement[master]: DB_SLAVE --> DB_REPLICA

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

Change subject: DB_SLAVE --> DB_REPLICA
..


DB_SLAVE --> DB_REPLICA

Change-Id: I8d79833a1c5aaa1d31f94851fda9deefc2dd3c58
---
M RevisionCommentSupplement.class.php
M RevisionCommentSupplement.hook.php
M maintenance/fixUserGroupSupplement.php
M special/SpecialRevisionCommentSupplement.php
M special/ViewRevisionCommentSupplementEdit.php
M special/ViewRevisionCommentSupplementList.php
6 files changed, 14 insertions(+), 14 deletions(-)

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



diff --git a/RevisionCommentSupplement.class.php 
b/RevisionCommentSupplement.class.php
index 04649e0..d4bc969 100644
--- a/RevisionCommentSupplement.class.php
+++ b/RevisionCommentSupplement.class.php
@@ -33,7 +33,7 @@
public static function insert( $revId, $newsupplement, $reason ) {
$oldsupplement = '';
$action = 'create';
-   $dbr = wfGetDB( DB_SLAVE );
+   $dbr = wfGetDB( DB_REPLICA );
$dbRow = $dbr->selectRow(
'rev_comment_supp',
'rcs_supplement',
@@ -139,7 +139,7 @@
 */
public static function delete( $revId, $reason = '' ) {
$oldsupplement = '';
-   $dbr = wfGetDB( DB_SLAVE );
+   $dbr = wfGetDB( DB_REPLICA );
$dbRow = $dbr->selectRow(
'rev_comment_supp',
'rcs_supplement',
@@ -168,7 +168,7 @@
 * @return object|bool
 */
public static function getRow( $revId ) {
-   $dbr = wfGetDB( DB_SLAVE );
+   $dbr = wfGetDB( DB_REPLICA );
$dbRow = $dbr->selectRow(
'rev_comment_supp',
'*',
@@ -188,7 +188,7 @@
 * @return bool
 */
public static function isExistRow( $revId ) {
-   $dbr = wfGetDB( DB_SLAVE );
+   $dbr = wfGetDB( DB_REPLICA );
$dbRow = $dbr->selectRow(
'rev_comment_supp',
'rcs_rev_id',
@@ -248,7 +248,7 @@
 * @return object|bool
 */
public static function getRow( $id ) {
-   $dbr = wfGetDB( DB_SLAVE );
+   $dbr = wfGetDB( DB_REPLICA );
$dbRow = $dbr->selectRow(
'rev_comment_supp_history',
'*',
@@ -268,7 +268,7 @@
 * @return bool
 */
public static function isExistRow( $id ) {
-   $dbr = wfGetDB( DB_SLAVE );
+   $dbr = wfGetDB( DB_REPLICA );
$dbRow = $dbr->selectRow(
'rev_comment_supp_history',
'rcsh_id',
@@ -288,7 +288,7 @@
 * @return bool
 */
public static function isExistHistory( $revId ) {
-   $dbr = wfGetDB( DB_SLAVE );
+   $dbr = wfGetDB( DB_REPLICA );
$dbRow = $dbr->selectRow(
'rev_comment_supp_history',
'rcsh_rev_id',
@@ -333,7 +333,7 @@
 * @return bool
 */
public static function hide( $id, $reason = '', $hide = 0 ) {
-   $dbr = wfGetDB( DB_SLAVE );
+   $dbr = wfGetDB( DB_REPLICA );
$dbRow = $dbr->selectRow(
'rev_comment_supp_history',
'rcsh_rev_id,rcsh_hidden',
diff --git a/RevisionCommentSupplement.hook.php 
b/RevisionCommentSupplement.hook.php
index f55ef35..3de4f53 100644
--- a/RevisionCommentSupplement.hook.php
+++ b/RevisionCommentSupplement.hook.php
@@ -26,7 +26,7 @@
 
public static function onPageHistoryLineEnding( HistoryPager $history, 
$revRow, &$s ) {
$revId = (int)$revRow->rev_id;
-   $dbr = wfGetDB( DB_SLAVE );
+   $dbr = wfGetDB( DB_REPLICA );
$dbRow = $dbr->selectRow(
'rev_comment_supp',
'rcs_supplement',
diff --git a/maintenance/fixUserGroupSupplement.php 
b/maintenance/fixUserGroupSupplement.php
index 3e8fe07..6b52178 100644
--- a/maintenance/fixUserGroupSupplement.php
+++ b/maintenance/fixUserGroupSupplement.php
@@ -20,7 +20,7 @@
$this->output( "\nThis will replace 10 seconds after.\n" );
wfCountDown( 10 );
$i = 0;
-   $dbr = wfGetDB( DB_SLAVE );
+   $dbr = wfGetDB( DB_REPLICA );
$rows = $dbr->select(
'user_groups',
'ug_user',
diff --git a/special/SpecialRevisionCommentSupplement.php 
b/special/SpecialRevisionCommentSupplement.php
index 8cd992e..151acda 100644
--- a/special/SpecialRevisionCommentSupplement.php
+++ b/special/SpecialRevisionCommentSupplement.php
@@ 

[MediaWiki-commits] [Gerrit] mediawiki...RevisionCommentSupplement[master]: DB_SLAVE --> DB_REPLICA

2017-10-13 Thread MaxSem (Code Review)
MaxSem has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/384146 )

Change subject: DB_SLAVE --> DB_REPLICA
..

DB_SLAVE --> DB_REPLICA

Change-Id: I8d79833a1c5aaa1d31f94851fda9deefc2dd3c58
---
M RevisionCommentSupplement.class.php
M RevisionCommentSupplement.hook.php
M maintenance/fixUserGroupSupplement.php
M special/SpecialRevisionCommentSupplement.php
M special/ViewRevisionCommentSupplementEdit.php
M special/ViewRevisionCommentSupplementList.php
6 files changed, 14 insertions(+), 14 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/RevisionCommentSupplement 
refs/changes/46/384146/1

diff --git a/RevisionCommentSupplement.class.php 
b/RevisionCommentSupplement.class.php
index 04649e0..d4bc969 100644
--- a/RevisionCommentSupplement.class.php
+++ b/RevisionCommentSupplement.class.php
@@ -33,7 +33,7 @@
public static function insert( $revId, $newsupplement, $reason ) {
$oldsupplement = '';
$action = 'create';
-   $dbr = wfGetDB( DB_SLAVE );
+   $dbr = wfGetDB( DB_REPLICA );
$dbRow = $dbr->selectRow(
'rev_comment_supp',
'rcs_supplement',
@@ -139,7 +139,7 @@
 */
public static function delete( $revId, $reason = '' ) {
$oldsupplement = '';
-   $dbr = wfGetDB( DB_SLAVE );
+   $dbr = wfGetDB( DB_REPLICA );
$dbRow = $dbr->selectRow(
'rev_comment_supp',
'rcs_supplement',
@@ -168,7 +168,7 @@
 * @return object|bool
 */
public static function getRow( $revId ) {
-   $dbr = wfGetDB( DB_SLAVE );
+   $dbr = wfGetDB( DB_REPLICA );
$dbRow = $dbr->selectRow(
'rev_comment_supp',
'*',
@@ -188,7 +188,7 @@
 * @return bool
 */
public static function isExistRow( $revId ) {
-   $dbr = wfGetDB( DB_SLAVE );
+   $dbr = wfGetDB( DB_REPLICA );
$dbRow = $dbr->selectRow(
'rev_comment_supp',
'rcs_rev_id',
@@ -248,7 +248,7 @@
 * @return object|bool
 */
public static function getRow( $id ) {
-   $dbr = wfGetDB( DB_SLAVE );
+   $dbr = wfGetDB( DB_REPLICA );
$dbRow = $dbr->selectRow(
'rev_comment_supp_history',
'*',
@@ -268,7 +268,7 @@
 * @return bool
 */
public static function isExistRow( $id ) {
-   $dbr = wfGetDB( DB_SLAVE );
+   $dbr = wfGetDB( DB_REPLICA );
$dbRow = $dbr->selectRow(
'rev_comment_supp_history',
'rcsh_id',
@@ -288,7 +288,7 @@
 * @return bool
 */
public static function isExistHistory( $revId ) {
-   $dbr = wfGetDB( DB_SLAVE );
+   $dbr = wfGetDB( DB_REPLICA );
$dbRow = $dbr->selectRow(
'rev_comment_supp_history',
'rcsh_rev_id',
@@ -333,7 +333,7 @@
 * @return bool
 */
public static function hide( $id, $reason = '', $hide = 0 ) {
-   $dbr = wfGetDB( DB_SLAVE );
+   $dbr = wfGetDB( DB_REPLICA );
$dbRow = $dbr->selectRow(
'rev_comment_supp_history',
'rcsh_rev_id,rcsh_hidden',
diff --git a/RevisionCommentSupplement.hook.php 
b/RevisionCommentSupplement.hook.php
index f55ef35..3de4f53 100644
--- a/RevisionCommentSupplement.hook.php
+++ b/RevisionCommentSupplement.hook.php
@@ -26,7 +26,7 @@
 
public static function onPageHistoryLineEnding( HistoryPager $history, 
$revRow, &$s ) {
$revId = (int)$revRow->rev_id;
-   $dbr = wfGetDB( DB_SLAVE );
+   $dbr = wfGetDB( DB_REPLICA );
$dbRow = $dbr->selectRow(
'rev_comment_supp',
'rcs_supplement',
diff --git a/maintenance/fixUserGroupSupplement.php 
b/maintenance/fixUserGroupSupplement.php
index 3e8fe07..6b52178 100644
--- a/maintenance/fixUserGroupSupplement.php
+++ b/maintenance/fixUserGroupSupplement.php
@@ -20,7 +20,7 @@
$this->output( "\nThis will replace 10 seconds after.\n" );
wfCountDown( 10 );
$i = 0;
-   $dbr = wfGetDB( DB_SLAVE );
+   $dbr = wfGetDB( DB_REPLICA );
$rows = $dbr->select(
'user_groups',
'ug_user',
diff --git a/special/SpecialRevisionCommentSupplement.php 
b/special/SpecialRevisionCommentSupplement.php
index 8cd992e..151acda 100644
--- a/special/SpecialRevisionCommentSupplement.php
+++ b/special/SpecialRe