MCPcopy Create free account
hub / github.com/MariaDB/server / load_data_tmp_prefix

Function load_data_tmp_prefix

sql/log_event_server.cc:412–432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410*/
411
412static char *load_data_tmp_prefix(char *name,
413 LEX_CSTRING *connection_name)
414{
415 name= strmov(name, PREFIX_SQL_LOAD);
416 if (connection_name->length)
417 {
418 uint buf_length;
419 uint errors;
420 /* Add marker that this is a multi-master-file */
421 *name++='-';
422 /* Convert connection_name to a safe filename */
423 buf_length= strconvert(system_charset_info, connection_name->str, FN_REFLEN,
424 &my_charset_filename, name, FN_REFLEN, &errors);
425 name+= buf_length;
426 *name++= '-';
427 }
428 name= int10_to_str(global_system_variables.server_id, name, 10);
429 *name++ = '-';
430 *name= '\0'; // For testing prefixes
431 return name;
432}
433
434
435/**

Callers 2

slave_load_file_stemFunction · 0.85
cleanup_load_tmpdirFunction · 0.85

Calls 3

strmovFunction · 0.85
strconvertFunction · 0.85
int10_to_strFunction · 0.85

Tested by

no test coverage detected