141 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:1360
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:161
void srv_pre_dd_shutdown()
Shut down all InnoDB background tasks that may look up objects in the data dictionary.
Definition: srv0start.cc:2601
bool srv_shutdown_state_matches(F &&f)
Allows to safely check value of the current shutdown state.
Definition: srv0shutdown.h:139
void srv_fatal_error()
Call std::quick_exit(3)
Definition: srv0start.cc:3128
void srv_shutdown()
Shut down the InnoDB database.
Definition: srv0start.cc:2959
srv_shutdown_t
Shutdown state.
Definition: srv0shutdown.h:46
@ SRV_SHUTDOWN_CLEANUP
Stopping remaining InnoDB background threads except:
Definition: srv0shutdown.h:91
@ SRV_SHUTDOWN_NONE
Database running normally.
Definition: srv0shutdown.h:48
@ SRV_SHUTDOWN_RECOVERY_ROLLBACK
Shutdown has started.
Definition: srv0shutdown.h:56
@ 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:104
@ SRV_SHUTDOWN_PURGE
Stopping the purge threads.
Definition: srv0shutdown.h:72
@ SRV_SHUTDOWN_FLUSH_PHASE
Once we enter this phase, the page cleaners can clean up the buffer pool and exit.
Definition: srv0shutdown.h:99
@ SRV_SHUTDOWN_PRE_DD_AND_SYSTEM_TRANSACTIONS
Stopping threads that might use system transactions or DD objects.
Definition: srv0shutdown.h:68
@ SRV_SHUTDOWN_DD
Shutting down the DD.
Definition: srv0shutdown.h:75
@ SRV_SHUTDOWN_EXIT_THREADS
Exit all threads and free resources.
Definition: srv0shutdown.h:110
@ SRV_SHUTDOWN_MASTER_STOP
Stopping the master thread.
Definition: srv0shutdown.h:94
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:2595
Version control for database, common definitions, and include files.