jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/352357 )
Change subject: Replace deprecated DB_SLAVE constant
......................................................................
Replace deprecated DB_SLAVE constant
Change-Id: I48cc5be2b2be59596bfb65eaaba330b9ae6821fc
---
M includes/DumpMetaInformation/SqlDumpMetaInformationRepo.php
M includes/ExternalDataRepo.php
2 files changed, 5 insertions(+), 5 deletions(-)
Approvals:
Aude: Looks good to me, approved
Lucas Werkmeister (WMDE): Looks good to me, but someone else must approve
jenkins-bot: Verified
diff --git a/includes/DumpMetaInformation/SqlDumpMetaInformationRepo.php
b/includes/DumpMetaInformation/SqlDumpMetaInformationRepo.php
index 0371b82..96277d5 100644
--- a/includes/DumpMetaInformation/SqlDumpMetaInformationRepo.php
+++ b/includes/DumpMetaInformation/SqlDumpMetaInformationRepo.php
@@ -37,7 +37,7 @@
}
if( count( $dumpIds ) > 0 ) {
- $db = wfGetDB( DB_SLAVE );
+ $db = wfGetDB( DB_REPLICA );
$result = $db->select(
array(
self::META_TABLE_NAME,
@@ -80,7 +80,7 @@
}
if( count( $identifierPropertyIds ) > 0 ) {
- $db = wfGetDB( DB_SLAVE );
+ $db = wfGetDB( DB_REPLICA );
$identifierPropertyIds = array_map(
function( PropertyId $id ) {
return $id->getSerialization();
@@ -114,7 +114,7 @@
* @return DumpMetaInformation[]
*/
public function getAll() {
- $db = wfGetDB( DB_SLAVE );
+ $db = wfGetDB( DB_REPLICA );
$result = $db->select(
array(
self::META_TABLE_NAME,
@@ -187,7 +187,7 @@
* @param DumpMetaInformation $dumpMetaInformation
*/
public function save( DumpMetaInformation $dumpMetaInformation ) {
- $db = wfGetDB( DB_SLAVE );
+ $db = wfGetDB( DB_REPLICA );
$dumpId = $dumpMetaInformation->getDumpId();
$accumulator = $this->getDumpInformationFields( $db,
$dumpMetaInformation );
diff --git a/includes/ExternalDataRepo.php b/includes/ExternalDataRepo.php
index ea07922..bcc1eb1 100644
--- a/includes/ExternalDataRepo.php
+++ b/includes/ExternalDataRepo.php
@@ -40,7 +40,7 @@
}
$externalData = array();
- $db = wfGetDB( DB_SLAVE );
+ $db = wfGetDB( DB_REPLICA );
$result = $db->select(
self::TABLE_NAME,
array(
--
To view, visit https://gerrit.wikimedia.org/r/352357
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I48cc5be2b2be59596bfb65eaaba330b9ae6821fc
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikibaseQualityExternalValidation
Gerrit-Branch: master
Gerrit-Owner: Thiemo Mättig (WMDE) <[email protected]>
Gerrit-Reviewer: Addshore <[email protected]>
Gerrit-Reviewer: Aude <[email protected]>
Gerrit-Reviewer: Lucas Werkmeister (WMDE) <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits