From 7503894ab5ad6017e6a050ed942c9a60dddddcba Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 6 Apr 2005 19:43:35 +0300 Subject: Fixed errors found during review mysql-test/r/drop.result: Made error message smaller to not get into trouble with clients with smaller error buffers The proper way to fix this is to generate a separate warning for each not found table if there was more than one table in the DROP but mysql-test/r/kill.result: Portablity fix mysql-test/t/kill.test: Portablity fix mysys/my_sync.c: Fixed possible compiler warning sql/records.cc: Fixed possible compiler warning sql/share/errmsg.txt: Made error message smaller to not get into trouble with clients with smaller error buffers sql/sql_class.cc: Don't put code in comments sql/sql_show.cc: Cleanup --- mysys/my_sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mysys/my_sync.c') diff --git a/mysys/my_sync.c b/mysys/my_sync.c index bfaf09ce402..c557324b52c 100644 --- a/mysys/my_sync.c +++ b/mysys/my_sync.c @@ -65,7 +65,7 @@ int my_sync(File fd, myf my_flags) int er= errno; if (!(my_errno= er)) my_errno= -1; /* Unknown error */ - if (my_flags & MY_IGNORE_BADFD && + if ((my_flags & MY_IGNORE_BADFD) && (er == EBADF || er == EINVAL || er == EROFS)) res= 0; else if (my_flags & MY_WME) -- cgit v1.2.1