#include "DBUpdater.h"
◆ CheckExecutable()
| bool DBUpdaterUtil::CheckExecutable |
( |
| ) |
|
|
static |
42{
43
44
45 std::error_code ec;
47 if (!is_regular_file(configured, ec))
48 {
50 if (!found.empty() && is_regular_file(found, ec))
51 {
52 std::filesystem::path const absoluteFound = absolute(found, ec);
53 if (!ec)
54 {
55
57 return true;
58 }
59 }
60
61 LOG_FATAL(
"sql.updates",
"Didn't find any executable MySQL binary at \'{}\' or in path, correct the path in the *.conf (\"MySQLExecutable\").",
62 configured.generic_string());
63
64 return false;
65 }
66 return true;
67}
#define LOG_FATAL(filterType__,...)
Definition Log.h:141
static std::string & corrected_path()
Definition DBUpdater.cpp:69
static std::string GetCorrectedMySQLExecutable()
Definition DBUpdater.cpp:33
std::string SearchExecutableInPath(std::string const &filename)
Definition StartProcess.cpp:295
References corrected_path(), GetCorrectedMySQLExecutable(), LOG_FATAL, and Acore::SearchExecutableInPath().
◆ corrected_path()
| std::string & DBUpdaterUtil::corrected_path |
( |
| ) |
|
|
staticprivate |
◆ failed_updates()
| uint32 & DBUpdaterUtil::failed_updates |
( |
| ) |
|
|
staticprivate |
◆ GetCorrectedMySQLExecutable()
| std::string DBUpdaterUtil::GetCorrectedMySQLExecutable |
( |
| ) |
|
|
static |
◆ GetFailedUpdateCount()
| uint32 DBUpdaterUtil::GetFailedUpdateCount |
( |
| ) |
|
|
static |
◆ MarkUpdateFailed()
| void DBUpdaterUtil::MarkUpdateFailed |
( |
| ) |
|
|
static |
The documentation for this class was generated from the following files: