MCPcopy Create free account
hub / github.com/MariaDB/server / remove_slave

Method remove_slave

sql/semisync_master.cc:575–591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573}
574
575void Repl_semi_sync_master::remove_slave()
576{
577 lock();
578 DBUG_ASSERT(rpl_semi_sync_master_clients > 0);
579 if (!(--rpl_semi_sync_master_clients) && !rpl_semi_sync_master_wait_no_slave
580 && get_master_enabled())
581 {
582 /*
583 Signal transactions waiting in commit_trx() that they do not have to
584 wait anymore.
585 */
586 DBUG_ASSERT(m_active_tranxs);
587 m_active_tranxs->clear_active_tranx_nodes(NULL, 0,
588 signal_waiting_transaction);
589 }
590 unlock();
591}
592
593
594/*

Callers 2

kill_callback_collectFunction · 0.45
dump_endMethod · 0.45

Calls 2

lockClass · 0.85

Tested by

no test coverage detected