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.
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License, version 2.0, as
@@ -337,7 +337,7 @@ class ServerCmd(_Constants):
337
337
BINLOG_DUMP = 18
338
338
TABLE_DUMP = 19
339
339
CONNECT_OUT = 20
340
- REGISTER_SLAVE = 21
340
+ REGISTER_REPLICA = 21
341
341
STMT_PREPARE = 22
342
342
STMT_EXECUTE = 23
343
343
STMT_SEND_LONG_DATA = 24
@@ -371,7 +371,7 @@ class ServerCmd(_Constants):
371
371
'BINLOG_DUMP' : (18 , 'BINLOG_DUMP' ),
372
372
'TABLE_DUMP' : (19 , 'TABLE_DUMP' ),
373
373
'CONNECT_OUT' : (20 , 'CONNECT_OUT' ),
374
- 'REGISTER_SLAVE ' : (21 , 'REGISTER_SLAVE ' ),
374
+ 'REGISTER_REPLICA ' : (21 , 'REGISTER_REPLICA ' ),
375
375
'STMT_PREPARE' : (22 , 'STMT_PREPARE' ),
376
376
'STMT_EXECUTE' : (23 , 'STMT_EXECUTE' ),
377
377
'STMT_SEND_LONG_DATA' : (24 , 'STMT_SEND_LONG_DATA' ),
@@ -543,7 +543,7 @@ class RefreshOption(_Constants):
543
543
HOST = 1 << 3
544
544
STATUS = 1 << 4
545
545
THREADS = 1 << 5
546
- SLAVE = 1 << 6
546
+ REPLICA = 1 << 6
547
547
548
548
desc = {
549
549
'GRANT' : (1 << 0 , 'Refresh grant tables' ),
@@ -552,7 +552,7 @@ class RefreshOption(_Constants):
552
552
'HOSTS' : (1 << 3 , 'Flush host cache' ),
553
553
'STATUS' : (1 << 4 , 'Flush status variables' ),
554
554
'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' ),
556
556
}
557
557
558
558
0 commit comments