Description:
perror provides the option --ndb for cluster error numbers. In 5.1.22-ndb-6.2.6 this function is not provided anymore.
How to repeat:
cluster binaries where compiled with ./configure --prefix=... --with-plugins=max
bad case:
# type perror
perror is /home/mysql/product/mysql-5.1.22-ndb-6.2.6/bin/perror
# perror --help
perror Ver 2.10, for pc-linux-gnu (i686)
This is commercial software, and use of this software is governed
by your applicable license agreement with MySQL
Print a description for a system error code or an error code from
a MyISAM/ISAM/BDB table handler.
If you want to get the error for a negative error code, you should use
-- before the first error code to tell perror that there was no more options.
Usage: perror [OPTIONS] [ERRORCODE [ERRORCODE...]]
-?, --help Displays this help and exits.
-I, --info Synonym for --help.
-s, --silent Only print the error message.
-v, --verbose Print error code and message (default).
-V, --version Displays version information and exits.
# perror --ndb 123
perror: unknown option '--ndb'
----------------------------------------------------
good case:
# type perror
perror is /home/mysql/product/mysql-5.1.21/bin/perror
# perror --help
perror Ver 2.10, for redhat-linux-gnu (i686)
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license
Print a description for a system error code or an error code from
a MyISAM/ISAM/BDB table handler.
If you want to get the error for a negative error code, you should use
-- before the first error code to tell perror that there was no more options.
Usage: perror [OPTIONS] [ERRORCODE [ERRORCODE...]]
-?, --help Displays this help and exits.
-I, --info Synonym for --help.
--ndb Ndbcluster storage engine specific error codes.
-s, --silent Only print the error message.
-v, --verbose Print error code and message (default).
-V, --version Displays version information and exits.
# perror --ndb 123
Illegal ndb error code: 123
Suggested fix:
either something in the fork is missing or in the make file is a bug!
See also bug 15486