142 return std::forward<F>(f)(state);
Header for compiler-dependent features.
void srv_shutdown_exit_threads()
Attempt to shutdown all background threads created by InnoDB.
Definition: srv0start.cc:1361
std::atomic< enum srv_shutdown_t > srv_shutdown_state
At a shutdown this value climbs from SRV_SHUTDOWN_NONE to SRV_SHUTDOWN_EXIT_THREADS.
Definition: srv0start.cc:162
void srv_pre_dd_shutdown()
Shut down all InnoDB background tasks that may look up objects in the data dictionary.
Definition: srv0start.cc:2597
bool srv_shutdown_state_matches(F &&f)
Allows to safely check value of the current shutdown state.
Definition: srv0shutdown.h:140
void srv_fatal_error()
Call std::quick_exit(3)
Definition: srv0start.cc:3125
void srv_shutdown()
Shut down the InnoDB database.
Definition: srv0start.cc:2955
srv_shutdown_t
Shutdown state.
Definition: srv0shutdown.h:47
@ SRV_SHUTDOWN_CLEANUP
Stopping remaining InnoDB background threads except:
Definition: srv0shutdown.h:92
@ SRV_SHUTDOWN_NONE
Database running normally.
Definition: srv0shutdown.h:49
@ SRV_SHUTDOWN_RECOVERY_ROLLBACK
Shutdown has started.
Definition: srv0shutdown.h:57
@ SRV_SHUTDOWN_LAST_PHASE
Last phase after ensuring that all data have been flushed to disk and the flushed_lsn has been update...
Definition: srv0shutdown.h:105
@ SRV_SHUTDOWN_PURGE
Stopping the purge threads.
Definition: srv0shutdown.h:73
@ SRV_SHUTDOWN_FLUSH_PHASE
Once we enter this phase, the page cleaners can clean up the buffer pool and exit.
Definition: srv0shutdown.h:100
@ SRV_SHUTDOWN_PRE_DD_AND_SYSTEM_TRANSACTIONS
Stopping threads that might use system transactions or DD objects.
Definition: srv0shutdown.h:69
@ SRV_SHUTDOWN_DD
Shutting down the DD.
Definition: srv0shutdown.h:76
@ SRV_SHUTDOWN_EXIT_THREADS
Exit all threads and free resources.
Definition: srv0shutdown.h:111
@ SRV_SHUTDOWN_MASTER_STOP
Stopping the master thread.
Definition: srv0shutdown.h:95
bool srv_shutdown_waits_for_rollback_of_recovered_transactions()
Checks if all recovered transactions are supposed to be rolled back before shutdown is ended.
Definition: srv0start.cc:2591
Version control for database, common definitions, and include files.