Skip to content

Commit 82f1251

Browse files
committed
Get away from master-slave jargon
1 parent d2f8f99 commit 82f1251

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

convert_sqlite_to_mysql_script/convert_sqlite_to_mysql_rb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ def isSqliteType(dbLocationArg):
254254
tmpCursor = tmpConnection.cursor()
255255

256256
try:
257-
# try getting something from the master table
258-
tmpCursor.execute('''select * from sqlite_master limit 1''')
257+
# try getting something from the main table
258+
tmpCursor.execute('''select * from sqlite_main limit 1''')
259259
except sqlite3.DatabaseError as e:
260260
tmpCursor.close()
261261
tmpConnection.close()

convert_sqlite_to_mysql_script/mysql/connector/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ class RefreshOption(_constants):
411411
'HOSTS': (1 << 3, 'Flush host cache'),
412412
'STATUS': (1 << 4, 'Flush status variables'),
413413
'THREADS': (1 << 5, 'Flush thread cache'),
414-
'SLAVE': (1 << 6, 'Reset master info and restart slave thread'),
414+
'SLAVE': (1 << 6, 'Reset main info and restart subordinate thread'),
415415
}
416416

417417

convert_sqlite_to_mysql_script/mysql/connector/locales/eng/client_error.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252
CR_EMBEDDED_CONNECTION = "Embedded server"
5353
CR_PROBE_SLAVE_STATUS = "Error on SHOW SLAVE STATUS:"
5454
CR_PROBE_SLAVE_HOSTS = "Error on SHOW SLAVE HOSTS:"
55-
CR_PROBE_SLAVE_CONNECT = "Error connecting to slave:"
56-
CR_PROBE_MASTER_CONNECT = "Error connecting to master:"
55+
CR_PROBE_SLAVE_CONNECT = "Error connecting to subordinate:"
56+
CR_PROBE_MASTER_CONNECT = "Error connecting to main:"
5757
CR_SSL_CONNECTION_ERROR = "SSL connection error: %-.100s"
5858
CR_MALFORMED_PACKET = "Malformed packet"
5959
CR_WRONG_LICENSE = "This client library is licensed only for use with MySQL servers having '%s' license"

0 commit comments

Comments
 (0)