mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
errors without code removed
net_printf/send_error calls replaced by my_error family functions -1/1 (sent/unsent) error reporting removed (WL#2133)
This commit is contained in:
@ -47,13 +47,12 @@ mapped_files::mapped_files(const my_string filename,byte *magic,uint magic_lengt
|
||||
0L)))
|
||||
{
|
||||
error=errno;
|
||||
my_printf_error(0,"Can't map file: %s, errno: %d",MYF(0),
|
||||
(my_string) name,error);
|
||||
my_error(ER_NO_FILE_MAPPING,MYF(0), (my_string) name, error);
|
||||
}
|
||||
}
|
||||
if (map && memcmp(map,magic,magic_length))
|
||||
{
|
||||
my_printf_error(0,"Wrong magic in %s",MYF(0),name);
|
||||
my_error(ER_WRONG_MAGIC, MYF(0), name);
|
||||
VOID(munmap(map,size));
|
||||
map=0;
|
||||
}
|
||||
@ -112,8 +111,7 @@ mapped_files *map_file(const my_string name,byte *magic,uint magic_length)
|
||||
{
|
||||
map->use_count++;
|
||||
if (!map->map)
|
||||
my_printf_error(0,"Can't map file: %s, error: %d",MYF(0),path,
|
||||
map->error);
|
||||
my_error(ER_NO_FILE_MAPPING, MYF(0), path, map->error);
|
||||
}
|
||||
VOID(pthread_mutex_unlock(&LOCK_mapped_file));
|
||||
return map;
|
||||
|
Reference in New Issue
Block a user