Create the name of the log specified. This method forms a new path + file name for the log specified in @c name. @param[IN] buff Location for building new string. @param[IN] name Name of the log file. @param[IN] log_ext The extension for the log (e.g. .log). @returns Pointer to new string containing the name. */
| 186 | @returns Pointer to new string containing the name. |
| 187 | */ |
| 188 | char *make_log_name(char *buff, const char *name, const char* log_ext) |
| 189 | { |
| 190 | strmake(buff, name, FN_REFLEN-5); |
| 191 | return fn_format(buff, buff, mysql_real_data_home, log_ext, |
| 192 | MYF(MY_UNPACK_FILENAME|MY_REPLACE_EXT)); |
| 193 | } |
| 194 | |
| 195 | |
| 196 | /* log event handlers */ |
no test coverage detected