aboutsummaryrefslogtreecommitdiffstats
path: root/includes/api/ApiBase.php
diff options
context:
space:
mode:
authorJames D. Forrester <jforrester@wikimedia.org>2021-04-18 18:02:08 -0700
committerJames D. Forrester <jforrester@wikimedia.org>2021-05-14 12:40:34 -0700
commitf2f9345e39d4169d387c198eececb112761b338a (patch)
treef75761bb45fd4be7a08126ae82c562fc7a422c57 /includes/api/ApiBase.php
parent0157586f9b311751b3ebb06e41ddfd2afd254ebe (diff)
downloadmediawikicore-f2f9345e39d4169d387c198eececb112761b338a.tar.gz
mediawikicore-f2f9345e39d4169d387c198eececb112761b338a.zip
Replace uses of DB_MASTER with DB_PRIMARY in documentation and local variables
This is just a start. Bug: T254646 Change-Id: I9213aad4660e27afe7ff9e5d2e730cbf03911068
Diffstat (limited to 'includes/api/ApiBase.php')
-rw-r--r--includes/api/ApiBase.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php
index 06eb655e25fe..bcf8a1fe214f 100644
--- a/includes/api/ApiBase.php
+++ b/includes/api/ApiBase.php
@@ -331,8 +331,8 @@ abstract class ApiBase extends ContextSource {
* Indicates whether this module requires write mode
*
* This should return true for modules that may require synchronous database writes.
- * Modules that do not need such writes should also not rely on master database access,
- * since only read queries are needed and each master DB is a single point of failure.
+ * Modules that do not need such writes should also not rely on primary database access,
+ * since only read queries are needed and each primary DB is a single point of failure.
* Additionally, requests that only need replica DBs can be efficiently routed to any
* datacenter via the Promise-Non-Write-API-Action header.
*
@@ -981,7 +981,7 @@ abstract class ApiBase extends ContextSource {
* @param string|false $load Whether load the object's state from the database:
* - false: don't load (if the pageid is given, it will still be loaded)
* - 'fromdb': load from a replica DB
- * - 'fromdbmaster': load from the master database
+ * - 'fromdbmaster': load from the primary database
* @return WikiPage
*/
public function getTitleOrPageId( $params, $load = false ) {