File tree Expand file tree Collapse file tree 5 files changed +4
-24
lines changed Expand file tree Collapse file tree 5 files changed +4
-24
lines changed Original file line number Diff line number Diff line change 24
24
#include " mariadb.h"
25
25
#include " sql_priv.h"
26
26
#include " init.h"
27
- #include " mysqld.h" // abort_loop, ...
27
+ #include " mysqld.h"
28
28
#include " my_time.h" // my_init_time
29
29
#include " unireg.h" // SPECIAL_SAME_DB_NAME
30
30
#include < m_ctype.h>
@@ -34,8 +34,6 @@ void unireg_init(ulong options)
34
34
DBUG_ENTER (" unireg_init" );
35
35
36
36
error_handler_hook = my_message_stderr;
37
- abort_loop=0 ;
38
-
39
37
my_disable_async_io=1 ; /* aioread is only in shared library */
40
38
wild_many=' %' ; wild_one=' _' ; wild_prefix=' \\ ' ; /* Change to sql syntax */
41
39
Original file line number Diff line number Diff line change @@ -510,7 +510,7 @@ handle_slave_background(void *arg __attribute__((unused)))
510
510
&old_stage);
511
511
for (;;)
512
512
{
513
- stop= abort_loop || thd->killed || slave_background_thread_stop;
513
+ stop= thd->killed || slave_background_thread_stop;
514
514
kill_list= slave_background_kill_list;
515
515
create_list= slave_background_gtid_pos_create_list;
516
516
pending_deletes= slave_background_gtid_pending_delete_flag;
@@ -1474,7 +1474,7 @@ static bool io_slave_killed(Master_info* mi)
1474
1474
DBUG_ENTER (" io_slave_killed" );
1475
1475
1476
1476
DBUG_ASSERT (mi->slave_running ); // tracking buffer overrun
1477
- DBUG_RETURN (mi->abort_slave || abort_loop || mi->io_thd ->killed );
1477
+ DBUG_RETURN (mi->abort_slave || mi->io_thd ->killed );
1478
1478
}
1479
1479
1480
1480
/* *
@@ -1499,7 +1499,7 @@ static bool sql_slave_killed(rpl_group_info *rgi)
1499
1499
1500
1500
DBUG_ASSERT (rli->sql_driver_thd == thd);
1501
1501
DBUG_ASSERT (rli->slave_running == 1 );// tracking buffer overrun
1502
- if (abort_loop || rli->sql_driver_thd ->killed || rli->abort_slave )
1502
+ if (rli->sql_driver_thd ->killed || rli->abort_slave )
1503
1503
{
1504
1504
/*
1505
1505
The transaction should always be binlogged if OPTION_KEEP_LOG is
Original file line number Diff line number Diff line change @@ -278,7 +278,6 @@ void slave_background_gtid_pos_create_request
278
278
(rpl_slave_state::gtid_pos_table *table_entry);
279
279
void slave_background_gtid_pending_delete_request (void );
280
280
281
- extern bool volatile abort_loop;
282
281
extern Master_info *active_mi; /* active_mi for multi-master */
283
282
extern Master_info *default_master_info; /* To replace active_mi */
284
283
extern Master_info_index *master_info_index;
Original file line number Diff line number Diff line change @@ -2375,22 +2375,6 @@ void wsrep_wait_appliers_close(THD *thd)
2375
2375
*/
2376
2376
}
2377
2377
2378
- void wsrep_kill_mysql (THD *thd)
2379
- {
2380
- if (mysqld_server_started)
2381
- {
2382
- if (!abort_loop)
2383
- {
2384
- WSREP_INFO (" starting shutdown" );
2385
- kill_mysql (thd);
2386
- }
2387
- }
2388
- else
2389
- {
2390
- unireg_abort (1 );
2391
- }
2392
- }
2393
-
2394
2378
void
2395
2379
wsrep_last_committed_id (wsrep_gtid_t * gtid)
2396
2380
{
Original file line number Diff line number Diff line change @@ -195,7 +195,6 @@ extern int wsrep_wait_committing_connections_close(int wait_time);
195
195
extern void wsrep_close_applier (THD *thd);
196
196
extern void wsrep_wait_appliers_close (THD *thd);
197
197
extern void wsrep_close_applier_threads (int count);
198
- extern void wsrep_kill_mysql (THD *thd);
199
198
200
199
201
200
/* new defines */
You can’t perform that action at this time.
0 commit comments