43 size_t maximum_length,
45 return value !=
nullptr &&
length <= maximum_length &&
46 (allow_empty ||
length != 0) &&
static char * path
Definition: mysqldump.cc:153
bool length(const dd::Spatial_reference_system *srs, const Geometry *g1, double *length, bool *null) noexcept
Computes the length of linestrings and multilinestrings.
Definition: length.cc:76
Definition: health_monitor_configuration-t.cc:31
bool valid_configuration_string(const char *value, size_t length, size_t maximum_length, bool allow_empty)
Return true if a string meets the configured length and content limits.
Definition: health_monitor_configuration.h:42
constexpr int report_interval_seconds(int minutes)
Convert a Disk Forecaster report interval from minutes to seconds.
Definition: health_monitor_configuration.h:39
bool valid_monitored_path(const char *path, size_t length)
Return true if a monitored path is empty or a valid absolute path.
Definition: health_monitor_configuration.h:51
constexpr size_t k_max_monitored_path_length
Definition: health_monitor_configuration.h:36
constexpr bool k_disk_fallback_enable_default
Definition: health_monitor_configuration.h:34
constexpr char k_disk_monitored_default[]
Definition: health_monitor_configuration.h:33
std::chrono::minutes minutes
Definition: authorize_manager.cc:72
ValueType value(const std::optional< ValueType > &v)
Definition: gtid.h:83
bool is_absolute(const std::string &path)
Checks if path is absolute.
Definition: utils_path_unix.cc:204