MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / make_log_name

Function make_log_name

sql/log.cc:188–193  ·  view source on GitHub ↗

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. */

Source from the content-addressed store, hash-verified

186 @returns Pointer to new string containing the name.
187*/
188char *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 */

Callers 2

make_default_log_nameFunction · 0.85
fix_logFunction · 0.85

Calls 2

strmakeFunction · 0.85
fn_formatFunction · 0.85

Tested by

no test coverage detected