Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
4c20a4da
Commit
4c20a4da
authored
Dec 05, 2005
by
hartmut@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed "perror --ndb" for 5.1 (bug #15486)
parent
9bd4f322
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
extra/Makefile.am
extra/Makefile.am
+3
-0
extra/perror.c
extra/perror.c
+4
-4
No files found.
extra/Makefile.am
View file @
4c20a4da
...
...
@@ -44,5 +44,8 @@ bin_PROGRAMS = replace comp_err perror resolveip my_print_defaults \
resolve_stack_dump mysql_waitpid innochecksum
noinst_PROGRAMS
=
charset2html
perror.o
:
perror.c
$(COMPILE)
@ndbcluster_includes@
$(LM_CFLAGS)
-c
$<
# Don't update the files from bitkeeper
%
::
SCCS/s.%
extra/perror.c
View file @
4c20a4da
...
...
@@ -23,14 +23,14 @@
#include <m_string.h>
#include <errno.h>
#include <my_getopt.h>
#ifdef
HAVE_NDBCLUSTER_DB
#ifdef
WITH_NDBCLUSTER_STORAGE_ENGINE
#include "../storage/ndb/src/ndbapi/ndberror.c"
#include "../storage/ndb/src/kernel/error/ndbd_exit_codes.c"
#endif
static
my_bool
verbose
,
print_all_codes
;
#ifdef
HAVE_NDBCLUSTER_DB
#ifdef
WITH_NDBCLUSTER_STORAGE_ENGINE
static
my_bool
ndb_code
;
static
char
ndb_string
[
1024
];
#endif
...
...
@@ -41,7 +41,7 @@ static struct my_option my_long_options[] =
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"info"
,
'I'
,
"Synonym for --help."
,
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
#ifdef
HAVE_NDBCLUSTER_DB
#ifdef
WITH_NDBCLUSTER_STORAGE_ENGINE
{
"ndb"
,
257
,
"Ndbcluster storage engine specific error codes."
,
(
gptr
*
)
&
ndb_code
,
(
gptr
*
)
&
ndb_code
,
0
,
GET_BOOL
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
#endif
...
...
@@ -233,7 +233,7 @@ int main(int argc,char *argv[])
found
=
0
;
code
=
atoi
(
*
argv
);
#ifdef
HAVE_NDBCLUSTER_DB
#ifdef
WITH_NDBCLUSTER_STORAGE_ENGINE
if
(
ndb_code
)
{
if
((
ndb_error_string
(
code
,
ndb_string
,
sizeof
(
ndb_string
))
<
0
)
&&
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment