summaryrefslogtreecommitdiff
path: root/sql/sql_map.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2004-11-12 14:34:00 +0200
committerbell@sanja.is.com.ua <>2004-11-12 14:34:00 +0200
commit31f7811183b6dd197cb7643abbe1b56cec72b602 (patch)
tree7591e416fa1685ed1e41707824091a5ca7f9c2c1 /sql/sql_map.cc
parent5bf7a8c30b7fb3c21a8cd57b4dad9b05b2a3b521 (diff)
downloadmariadb-git-31f7811183b6dd197cb7643abbe1b56cec72b602.tar.gz
post-review fixes
Diffstat (limited to 'sql/sql_map.cc')
-rw-r--r--sql/sql_map.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/sql/sql_map.cc b/sql/sql_map.cc
index c6637474908..917a8f2c30f 100644
--- a/sql/sql_map.cc
+++ b/sql/sql_map.cc
@@ -47,12 +47,13 @@ mapped_files::mapped_files(const my_string filename,byte *magic,uint magic_lengt
0L)))
{
error=errno;
- my_error(ER_NO_FILE_MAPPING,MYF(0), (my_string) name, error);
+ my_printf_error(ER_NO_FILE_MAPPING, ER(ER_NO_FILE_MAPPING), MYF(0),
+ (my_string) name, error);
}
}
if (map && memcmp(map,magic,magic_length))
{
- my_error(ER_WRONG_MAGIC, MYF(0), name);
+ my_printf_error(ER_WRONG_MAGIC, ER(ER_WRONG_MAGIC), MYF(0), name);
VOID(munmap(map,size));
map=0;
}
@@ -111,7 +112,8 @@ mapped_files *map_file(const my_string name,byte *magic,uint magic_length)
{
map->use_count++;
if (!map->map)
- my_error(ER_NO_FILE_MAPPING, MYF(0), path, map->error);
+ my_printf_error(ER_NO_FILE_MAPPING, ER(ER_NO_FILE_MAPPING), MYF(0),
+ path, map->error);
}
VOID(pthread_mutex_unlock(&LOCK_mapped_file));
return map;