#include "DBUpdater.h"
◆ CheckExecutable()
bool DBUpdaterUtil::CheckExecutable |
( |
| ) |
|
|
static |
40{
42 if (!is_regular_file(exe))
43 {
45 if (!exe.empty() && is_regular_file(exe))
46 {
47
49 return true;
50 }
51
52 LOG_FATAL(
"sql.updates",
"Didn't find any executable MySQL binary at \'{}\' or in path, correct the path in the *.conf (\"MySQLExecutable\").",
53 absolute(exe).generic_string());
54
55 return false;
56 }
57 return true;
58}
#define LOG_FATAL(filterType__,...)
Definition Log.h:153
static std::string & corrected_path()
Definition DBUpdater.cpp:60
static std::string GetCorrectedMySQLExecutable()
Definition DBUpdater.cpp:31
std::string SearchExecutableInPath(std::string const &filename)
Definition StartProcess.cpp:280
References corrected_path(), GetCorrectedMySQLExecutable(), LOG_FATAL, and Acore::SearchExecutableInPath().
Referenced by DBUpdater< T >::Populate(), DBUpdater< T >::Update(), and DBUpdater< T >::Update().
◆ corrected_path()
std::string & DBUpdaterUtil::corrected_path |
( |
| ) |
|
|
staticprivate |
◆ GetCorrectedMySQLExecutable()
std::string DBUpdaterUtil::GetCorrectedMySQLExecutable |
( |
| ) |
|
|
static |
The documentation for this class was generated from the following files: