MCPcopy Create free account
hub / github.com/Tencent/phxsql / cleanup

Method cleanup

phx_percona/percona/sql/binlog.cc:2610–2628  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2608/* this is called only once */
2609
2610void MYSQL_BIN_LOG::cleanup()
2611{
2612 DBUG_ENTER("cleanup");
2613 if (inited)
2614 {
2615 inited= 0;
2616 close(LOG_CLOSE_INDEX|LOG_CLOSE_STOP_EVENT);
2617 mysql_mutex_destroy(&LOCK_log);
2618 mysql_mutex_destroy(&LOCK_index);
2619 mysql_mutex_destroy(&LOCK_commit);
2620 mysql_mutex_destroy(&LOCK_sync);
2621 mysql_mutex_destroy(&LOCK_xids);
2622 mysql_cond_destroy(&update_cond);
2623 my_atomic_rwlock_destroy(&m_prep_xids_lock);
2624 mysql_cond_destroy(&m_prep_xids_cond);
2625 stage_manager.deinit();
2626 }
2627 DBUG_VOID_RETURN;
2628}
2629
2630
2631void MYSQL_BIN_LOG::init_pthread_objects()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected