Skip to content

Commit 5ca544c

Browse files
committed
WL14215: Replace language in APIs and source code/docs
The purpose of this worklog is about removing terms from Connector Python apis/source code/docs that may be considered racial insensitive.
1 parent 9f6feb3 commit 5ca544c

File tree

10 files changed

+906
-529
lines changed

10 files changed

+906
-529
lines changed

docs/mysqlx/tutorials/collections.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,14 @@ value.
157157
.. code-block:: python
158158
159159
collection.modify('name == "Daenerys"').patch('''
160-
{"dragons":{"drogon": "black with red markings",
160+
{"dragons":{"drogon": "dark grayish with red markings",
161161
"Rhaegal": "green with bronze markings",
162162
"Viserion": "creamy white, with gold markings",
163163
"count": 3}}
164164
''').execute()
165165
doc = collection.find("name = 'Daenerys'").execute().fetch_all()[0]
166166
assert(doc.dragons == {"count": 3,
167-
"drogon": "black with red markings",
167+
"drogon": "dark grayish with red markings",
168168
"Rhaegal": "green with bronze markings",
169169
"Viserion": "creamy white, with gold markings"})
170170

lib/mysql/connector/constants.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2009, 2019, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2009, 2020, Oracle and/or its affiliates. All rights reserved.
22
#
33
# This program is free software; you can redistribute it and/or modify
44
# it under the terms of the GNU General Public License, version 2.0, as
@@ -337,7 +337,7 @@ class ServerCmd(_Constants):
337337
BINLOG_DUMP = 18
338338
TABLE_DUMP = 19
339339
CONNECT_OUT = 20
340-
REGISTER_SLAVE = 21
340+
REGISTER_REPLICA = 21
341341
STMT_PREPARE = 22
342342
STMT_EXECUTE = 23
343343
STMT_SEND_LONG_DATA = 24
@@ -371,7 +371,7 @@ class ServerCmd(_Constants):
371371
'BINLOG_DUMP': (18, 'BINLOG_DUMP'),
372372
'TABLE_DUMP': (19, 'TABLE_DUMP'),
373373
'CONNECT_OUT': (20, 'CONNECT_OUT'),
374-
'REGISTER_SLAVE': (21, 'REGISTER_SLAVE'),
374+
'REGISTER_REPLICA': (21, 'REGISTER_REPLICA'),
375375
'STMT_PREPARE': (22, 'STMT_PREPARE'),
376376
'STMT_EXECUTE': (23, 'STMT_EXECUTE'),
377377
'STMT_SEND_LONG_DATA': (24, 'STMT_SEND_LONG_DATA'),
@@ -543,7 +543,7 @@ class RefreshOption(_Constants):
543543
HOST = 1 << 3
544544
STATUS = 1 << 4
545545
THREADS = 1 << 5
546-
SLAVE = 1 << 6
546+
REPLICA = 1 << 6
547547

548548
desc = {
549549
'GRANT': (1 << 0, 'Refresh grant tables'),
@@ -552,7 +552,7 @@ class RefreshOption(_Constants):
552552
'HOSTS': (1 << 3, 'Flush host cache'),
553553
'STATUS': (1 << 4, 'Flush status variables'),
554554
'THREADS': (1 << 5, 'Flush thread cache'),
555-
'SLAVE': (1 << 6, 'Reset master info and restart slave thread'),
555+
'REPLICA': (1 << 6, 'Reset source info and restart replica thread'),
556556
}
557557

558558

0 commit comments

Comments
 (0)