@@ -783,8 +783,8 @@ static MYSQL *mysql_handle = nullptr;
783
783
static char *dirname_for_local_load = nullptr ;
784
784
static uint opt_server_id_bits = 0 ;
785
785
ulong opt_server_id_mask = 0 ;
786
- Sid_map *global_sid_map = nullptr ;
787
- Checkable_rwlock *global_sid_lock = nullptr ;
786
+ Tsid_map *global_tsid_map = nullptr ;
787
+ Checkable_rwlock *global_tsid_lock = nullptr ;
788
788
Gtid_set *gtid_set_included = nullptr ;
789
789
Gtid_set *gtid_set_excluded = nullptr ;
790
790
static uint opt_zstd_compress_level = default_zstd_compression_level;
@@ -2596,8 +2596,8 @@ static void fix_gtid_set(MYSQL_RPL *rpl, uchar *packet_gtid_set) {
2596
2596
Note: we acquire lock in the dump_remote_log_entries()
2597
2597
just before mysql_binlog_open() call if GTID used.
2598
2598
*/
2599
- global_sid_lock ->assert_some_rdlock ();
2600
- global_sid_lock ->unlock ();
2599
+ global_tsid_lock ->assert_some_rdlock ();
2600
+ global_tsid_lock ->unlock ();
2601
2601
}
2602
2602
2603
2603
/*
@@ -2688,7 +2688,7 @@ static Exit_status dump_remote_log_entries(PRINT_EVENT_INFO *print_event_info,
2688
2688
if (opt_remote_proto != BINLOG_DUMP_NON_GTID) {
2689
2689
rpl.flags |= MYSQL_RPL_GTID;
2690
2690
2691
- global_sid_lock ->rdlock ();
2691
+ global_tsid_lock ->rdlock ();
2692
2692
rpl.gtid_set_encoded_size = gtid_set_excluded->get_encoded_length ();
2693
2693
rpl.fix_gtid_set = fix_gtid_set;
2694
2694
rpl.gtid_set_arg = (void *)gtid_set_excluded;
@@ -3191,13 +3191,13 @@ static int args_post_process(void) {
3191
3191
}
3192
3192
}
3193
3193
3194
- global_sid_lock ->rdlock ();
3194
+ global_tsid_lock ->rdlock ();
3195
3195
3196
3196
if (opt_include_gtids_str != nullptr ) {
3197
3197
if (gtid_set_included->add_gtid_text (opt_include_gtids_str) !=
3198
3198
RETURN_STATUS_OK) {
3199
3199
error (" Could not configure --include-gtids '%s'" , opt_include_gtids_str);
3200
- global_sid_lock ->unlock ();
3200
+ global_tsid_lock ->unlock ();
3201
3201
return ERROR_STOP;
3202
3202
}
3203
3203
}
@@ -3206,12 +3206,12 @@ static int args_post_process(void) {
3206
3206
if (gtid_set_excluded->add_gtid_text (opt_exclude_gtids_str) !=
3207
3207
RETURN_STATUS_OK) {
3208
3208
error (" Could not configure --exclude-gtids '%s'" , opt_exclude_gtids_str);
3209
- global_sid_lock ->unlock ();
3209
+ global_tsid_lock ->unlock ();
3210
3210
return ERROR_STOP;
3211
3211
}
3212
3212
}
3213
3213
3214
- global_sid_lock ->unlock ();
3214
+ global_tsid_lock ->unlock ();
3215
3215
3216
3216
if (connection_server_id == 0 && stop_never)
3217
3217
error (" Cannot set --server-id=0 when --stop-never is specified." );
@@ -3229,12 +3229,12 @@ static int args_post_process(void) {
3229
3229
Function is reentrant.
3230
3230
*/
3231
3231
inline void gtid_client_cleanup () {
3232
- delete global_sid_lock ;
3233
- delete global_sid_map ;
3232
+ delete global_tsid_lock ;
3233
+ delete global_tsid_map ;
3234
3234
delete gtid_set_excluded;
3235
3235
delete gtid_set_included;
3236
- global_sid_lock = nullptr ;
3237
- global_sid_map = nullptr ;
3236
+ global_tsid_lock = nullptr ;
3237
+ global_tsid_map = nullptr ;
3238
3238
gtid_set_excluded = nullptr ;
3239
3239
gtid_set_included = nullptr ;
3240
3240
}
@@ -3246,10 +3246,10 @@ inline void gtid_client_cleanup() {
3246
3246
false if OK
3247
3247
*/
3248
3248
inline bool gtid_client_init () {
3249
- const bool res = (!(global_sid_lock = new Checkable_rwlock) ||
3250
- !(global_sid_map = new Sid_map (global_sid_lock )) ||
3251
- !(gtid_set_excluded = new Gtid_set (global_sid_map )) ||
3252
- !(gtid_set_included = new Gtid_set (global_sid_map )));
3249
+ const bool res = (!(global_tsid_lock = new Checkable_rwlock) ||
3250
+ !(global_tsid_map = new Tsid_map (global_tsid_lock )) ||
3251
+ !(gtid_set_excluded = new Gtid_set (global_tsid_map )) ||
3252
+ !(gtid_set_included = new Gtid_set (global_tsid_map )));
3253
3253
if (res) {
3254
3254
gtid_client_cleanup ();
3255
3255
}
0 commit comments