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
97515d24
Commit
97515d24
authored
Nov 01, 2006
by
lzhou/root@dev3-138.dev.cn.tlan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#21052 Modify the overflow error existed in last patch.
parent
cdf20b96
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
ndb/include/ndbapi/ndberror.h
ndb/include/ndbapi/ndberror.h
+1
-1
ndb/src/mgmsrv/Services.cpp
ndb/src/mgmsrv/Services.cpp
+6
-3
ndb/src/ndbapi/ndberror.c
ndb/src/ndbapi/ndberror.c
+5
-2
No files found.
ndb/include/ndbapi/ndberror.h
View file @
97515d24
...
...
@@ -93,7 +93,7 @@ typedef ndberror_classification_enum ndberror_classification;
const
char
*
ndberror_status_message
(
ndberror_status
);
const
char
*
ndberror_classification_message
(
ndberror_classification
);
void
ndberror_update
(
ndberror_struct
*
);
int
ndb_error_string
(
int
err_no
,
char
*
str
,
unsigned
int
size
);
int
ndb_error_string
(
int
err_no
,
char
*
str
,
int
size
);
#endif
/* doxygen skip internal*/
...
...
ndb/src/mgmsrv/Services.cpp
View file @
97515d24
...
...
@@ -1337,7 +1337,7 @@ Ndb_mgmd_event_service::log(int eventType, const Uint32* theData, NodeId nodeId)
if
(
EventLoggerBase
::
event_lookup
(
eventType
,
cat
,
threshold
,
severity
,
textF
))
DBUG_VOID_RETURN
;
char
m_text
[
256
];
char
m_text
[
512
];
EventLogger
::
getText
(
m_text
,
sizeof
(
m_text
),
textF
,
theData
,
nodeId
);
...
...
@@ -1356,8 +1356,11 @@ Ndb_mgmd_event_service::log(int eventType, const Uint32* theData, NodeId nodeId)
if
(
strcmp
(
ndb_logevent_body
[
i
].
token
,
"error"
)
==
0
)
{
int
m_text_len
=
strlen
(
m_text
);
snprintf
(
m_text
+
m_text_len
,
4
,
" - "
);
ndb_error_string
(
theData
[
3
],
m_text
+
(
m_text_len
+
3
),
sizeof
(
m_text
)
-
m_text_len
-
3
);
if
(
sizeof
(
m_text
)
-
m_text_len
-
3
>
0
)
{
BaseString
::
snprintf
(
m_text
+
m_text_len
,
4
,
" - "
);
ndb_error_string
(
val
,
m_text
+
(
m_text_len
+
3
),
sizeof
(
m_text
)
-
m_text_len
-
3
);
}
}
}
...
...
ndb/src/ndbapi/ndberror.c
View file @
97515d24
...
...
@@ -680,11 +680,14 @@ const char *ndberror_classification_message(ndberror_classification classificati
return
empty_string
;
}
int
ndb_error_string
(
int
err_no
,
char
*
str
,
unsigned
int
size
)
int
ndb_error_string
(
int
err_no
,
char
*
str
,
int
size
)
{
ndberror_struct
error
;
unsigned
int
len
;
int
len
;
assert
(
size
>
1
);
if
(
size
<=
1
)
return
0
;
error
.
code
=
err_no
;
ndberror_update
(
&
error
);
...
...
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