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
279e2b8f
Commit
279e2b8f
authored
Feb 24, 2007
by
mats@romeo.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge romeo.(none):/home/bkroot/mysql-5.1-new-rpl
into romeo.(none):/home/bk/b26286-mysql-5.1-rpl
parents
ddd7c331
03a7a2dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sql/log_event.cc
sql/log_event.cc
+3
-3
No files found.
sql/log_event.cc
View file @
279e2b8f
...
...
@@ -5506,12 +5506,12 @@ int Rows_log_event::do_add_row_data(byte *const row_data,
DBUG_ASSERT
(
m_rows_cur
<=
m_rows_end
);
/* The cast will always work since m_rows_cur <= m_rows_end */
if
(
static_cast
<
my_size_t
>
(
m_rows_end
-
m_rows_cur
)
<
length
)
if
(
static_cast
<
my_size_t
>
(
m_rows_end
-
m_rows_cur
)
<
=
length
)
{
my_size_t
const
block_size
=
1024
;
my_ptrdiff_t
const
cur_size
=
m_rows_cur
-
m_rows_buf
;
my_ptrdiff_t
const
new_alloc
=
block_size
*
((
cur_size
+
length
)
/
block_size
+
block_size
-
1
);
block_size
*
((
cur_size
+
length
+
block_size
-
1
)
/
block_size
);
byte
*
const
new_buf
=
(
byte
*
)
my_realloc
((
gptr
)
m_rows_buf
,
new_alloc
,
MYF
(
MY_ALLOW_ZERO_PTR
|
MY_WME
));
...
...
@@ -5532,7 +5532,7 @@ int Rows_log_event::do_add_row_data(byte *const row_data,
m_rows_end
=
m_rows_buf
+
new_alloc
;
}
DBUG_ASSERT
(
m_rows_cur
+
length
<
m_rows_end
);
DBUG_ASSERT
(
m_rows_cur
+
length
<
=
m_rows_end
);
memcpy
(
m_rows_cur
,
row_data
,
length
);
m_rows_cur
+=
length
;
m_row_count
++
;
...
...
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