Below is the list of changes that have just been committed into a local
4.1 repository of jimw. When jimw does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet
1.2168 05/02/16 17:37:56 jimw@stripped +1 -0
Fix output of perror to include whether the error message
corresponds to an OS or MySQL error. (Bug #8517)
extra/perror.c
1.37 05/02/16 17:37:54 jimw@stripped +7 -6
Don't report OS errors that start with 'Unknown Error', and
always make clear whether we are reporting an OS or MySQL error
message.
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: jimw
# Host: rama.(none)
# Root: /home/jimw/my/mysql-4.1-8517
--- 1.36/extra/perror.c 2005-02-08 09:49:26 -08:00
+++ 1.37/extra/perror.c 2005-02-16 17:37:54 -08:00
@@ -245,16 +245,17 @@
msg = strerror(code);
/*
- Don't print message for not existing error messages or for
- unknown errors. We test for 'Uknown Errors' just as an
- extra safety for Netware
+ We don't print the OS error message if it is the same as the
+ unknown_error message we retrieved above, or it starts with
+ 'Unknown Error' (without regard to case).
*/
- if (msg && strcmp(msg, "Unknown Error") &&
+ if (msg &&
+ my_strnncoll(&my_charset_latin1, msg, 13, "Unknown Error", 13) &&
(!unknown_error || strcmp(msg, unknown_error)))
{
found=1;
if (verbose)
- printf("Error code %3d: %s\n",code,msg);
+ printf("OS error code %3d: %s\n",code,msg);
else
puts(msg);
}
@@ -269,7 +270,7 @@
else
{
if (verbose)
- printf("MySQL error: %3d = %s\n",code,msg);
+ printf("MySQL error code %3d: %s\n",code,msg);
else
puts(msg);
}
| Thread |
|---|
| • bk commit into 4.1 tree (jimw:1.2168) BUG#8517 | Jim Winstead | 17 Feb |