Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By webchick on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Issue links:
Description:
Both due to negative connotations of the phrase, as well as for better accuracy, "master/slave" has been replaced in the code base to "primary/replica." This pairing is used not only in Django, but also IBM Rational ClearQuest, Microsoft System Center, Engine Yard, and AWS.
Changes for site builders
Instead of specifying $databases['default']['slave'][] = $info_array; in settings.php, now you specify $databases['default']['replica'][] = $info_array;
API changes
- 'target' => 'slave' in db_select()/queryRange()/etc. changed to 'target' => 'replica'
- db_ignore_slave() => db_ignore_replica()
- class SlaveDatabaseIgnoreSubscriber => class ReplicaDatabaseIgnoreSubscriber
- "slave" key in Views options renamed to "replica"
Comments
Better reasons
I like the change but I'm not sure about the reasoning as such.
I would much rather see the reason for this change being as positive as the actual change. Simply the fact that primary/replica describes better what is actually going on on with replication than master/slave certInly does this.
Original discussion
The original discussion, in case anyone is curious: https://drupal.org/node/2275877
Wiki updated
FYI: http://en.wikipedia.org/wiki/Master/slave_(technology)#Political_correctness_issue
Attiks - Print and web design