MySQL 8.0.29
Source Code Documentation
loader.h File Reference
#include "config_parser.h"
#include "filesystem.h"
#include "mysql/harness/dynamic_loader.h"
#include "mysql/harness/loader_config.h"
#include "mysql/harness/plugin.h"
#include "harness_export.h"
#include "mpsc_queue.h"
#include "my_compiler.h"
#include <csignal>
#include <cstdarg>
#include <exception>
#include <future>
#include <istream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stdexcept>
#include <string>
#include <thread>
#include <tuple>

Go to the source code of this file.

Classes

class  mysql_harness::PluginFuncEnv
 PluginFuncEnv object. More...
 
class  mysql_harness::PluginThreads
 
class  mysql_harness::Loader
 
class  mysql_harness::Loader::PluginInfo
 Holds plugin's API call information. More...
 
class  mysql_harness::LogReopenThread
 

Namespaces

namespace  mysql_harness
 

Typedefs

typedef void(* log_reopen_callback) (const std::string)
 

Enumerations

enum  ShutdownReason { SHUTDOWN_NONE , SHUTDOWN_REQUESTED , SHUTDOWN_FATAL_ERROR }
 

Functions

HARNESS_EXPORT void set_log_reopen_complete_callback (log_reopen_callback cb)
 Setter for the log reopen thread completion callback function. More...
 
HARNESS_EXPORT void default_log_reopen_complete_cb (const std::string errmsg)
 The default implementation for log reopen thread completion callback function. More...
 
HARNESS_EXPORT void request_application_shutdown (const ShutdownReason reason=SHUTDOWN_REQUESTED)
 request application shutdown. More...
 
HARNESS_EXPORT void request_log_reopen (const std::string &dst="")
 notify a "log_reopen" is requested with optional filename for old logfile. More...
 
HARNESS_EXPORT bool log_reopen_completed ()
 check reopen completed More...
 
HARNESS_EXPORT std::string log_reopen_get_error ()
 get last log reopen error More...
 

Typedef Documentation

◆ log_reopen_callback

typedef void(* log_reopen_callback) (const std::string)

Enumeration Type Documentation

◆ ShutdownReason

Enumerator
SHUTDOWN_NONE 
SHUTDOWN_REQUESTED 
SHUTDOWN_FATAL_ERROR 

Function Documentation

◆ default_log_reopen_complete_cb()

HARNESS_EXPORT void default_log_reopen_complete_cb ( const std::string  errmsg)

The default implementation for log reopen thread completion callback function.

Parameters
errmsgError message. Empty string assumes successful completion.

◆ log_reopen_completed()

HARNESS_EXPORT bool log_reopen_completed ( )

check reopen completed

◆ log_reopen_get_error()

HARNESS_EXPORT std::string log_reopen_get_error ( )

get last log reopen error

◆ request_application_shutdown()

HARNESS_EXPORT void request_application_shutdown ( const ShutdownReason  reason)

request application shutdown.

Parameters
reasonreason for the shutdown
Exceptions
std::system_errorsame as std::unique_lock::lock does
std::system_errorsame as std::unique_lock::lock does

◆ request_log_reopen()

HARNESS_EXPORT void request_log_reopen ( const std::string &  dst)

notify a "log_reopen" is requested with optional filename for old logfile.

Parameters
dstrename old logfile to filename before reopen
Exceptions
std::system_errorsame as std::unique_lock::lock does

◆ set_log_reopen_complete_callback()

HARNESS_EXPORT void set_log_reopen_complete_callback ( log_reopen_callback  cb)

Setter for the log reopen thread completion callback function.

Parameters
cbFunction to call at completion.