#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.
◆ log_reopen_callback
typedef void(* log_reopen_callback) (const std::string) |
◆ ShutdownReason
Enumerator |
---|
SHUTDOWN_NONE | |
SHUTDOWN_REQUESTED | |
SHUTDOWN_FATAL_ERROR | |
◆ 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
-
errmsg | Error message. Empty string assumes successful completion. |
◆ log_reopen_completed()
HARNESS_EXPORT bool log_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
-
reason | reason for the shutdown |
- Exceptions
-
std::system_error | same as std::unique_lock::lock does |
std::system_error | same 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
-
dst | rename old logfile to filename before reopen |
- Exceptions
-
std::system_error | same as std::unique_lock::lock does |
◆ set_log_reopen_complete_callback()
Setter for the log reopen thread completion callback function.
- Parameters
-
cb | Function to call at completion. |