| 410 | */ |
| 411 | |
| 412 | static 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 | /** |
no test coverage detected