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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
edf3929c
Commit
edf3929c
authored
Aug 09, 2002
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ha_innobase.cc, trx0trx.h, lock0lock.c, trx0trx.c:
Add some more safety margin to buffer sizes in prints
parent
933417c1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
innobase/include/trx0trx.h
innobase/include/trx0trx.h
+1
-1
innobase/lock/lock0lock.c
innobase/lock/lock0lock.c
+2
-2
innobase/trx/trx0trx.c
innobase/trx/trx0trx.c
+1
-1
sql/ha_innobase.cc
sql/ha_innobase.cc
+2
-2
No files found.
innobase/include/trx0trx.h
View file @
edf3929c
...
@@ -262,7 +262,7 @@ void
...
@@ -262,7 +262,7 @@ void
trx_print
(
trx_print
(
/*======*/
/*======*/
char
*
buf
,
/* in/out: buffer where to print, must be at least
char
*
buf
,
/* in/out: buffer where to print, must be at least
5
00 bytes */
8
00 bytes */
trx_t
*
trx
);
/* in: transaction */
trx_t
*
trx
);
/* in: transaction */
...
...
innobase/lock/lock0lock.c
View file @
edf3929c
...
@@ -3625,7 +3625,7 @@ lock_print_info(
...
@@ -3625,7 +3625,7 @@ lock_print_info(
trx
=
UT_LIST_GET_FIRST
(
trx_sys
->
mysql_trx_list
);
trx
=
UT_LIST_GET_FIRST
(
trx_sys
->
mysql_trx_list
);
while
(
trx
)
{
while
(
trx
)
{
if
(
buf_end
-
buf
<
6
00
)
{
if
(
buf_end
-
buf
<
9
00
)
{
return
;
return
;
}
}
...
@@ -3662,7 +3662,7 @@ loop:
...
@@ -3662,7 +3662,7 @@ loop:
return
;
return
;
}
}
if
(
buf_end
-
buf
<
6
00
)
{
if
(
buf_end
-
buf
<
9
00
)
{
return
;
return
;
}
}
...
...
innobase/trx/trx0trx.c
View file @
edf3929c
...
@@ -1465,7 +1465,7 @@ void
...
@@ -1465,7 +1465,7 @@ void
trx_print
(
trx_print
(
/*======*/
/*======*/
char
*
buf
,
/* in/out: buffer where to print, must be at least
char
*
buf
,
/* in/out: buffer where to print, must be at least
5
00 bytes */
8
00 bytes */
trx_t
*
trx
)
/* in: transaction */
trx_t
*
trx
)
/* in: transaction */
{
{
char
*
start_of_line
;
char
*
start_of_line
;
...
...
sql/ha_innobase.cc
View file @
edf3929c
...
@@ -260,7 +260,7 @@ void
...
@@ -260,7 +260,7 @@ void
innobase_mysql_print_thd
(
innobase_mysql_print_thd
(
/*=====================*/
/*=====================*/
char
*
buf
,
/* in/out: buffer where to print, must be at least
char
*
buf
,
/* in/out: buffer where to print, must be at least
3
00 bytes */
4
00 bytes */
void
*
input_thd
)
/* in: pointer to a MySQL THD object */
void
*
input_thd
)
/* in: pointer to a MySQL THD object */
{
{
THD
*
thd
;
THD
*
thd
;
...
@@ -338,7 +338,7 @@ innobase_mysql_print_thd(
...
@@ -338,7 +338,7 @@ innobase_mysql_print_thd(
buf
=
strnmov
(
buf
,
thd
->
query
,
150
);
buf
=
strnmov
(
buf
,
thd
->
query
,
150
);
}
}
*
buf
=
'\n'
;
*
buf
=
'\n'
;
/* Here we should add '\0' to the nd of output to mark its end */
/* Here we should add '\0' to the
e
nd of output to mark its end */
#endif
#endif
}
}
}
}
...
...
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