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
2714b57b
Commit
2714b57b
authored
Sep 29, 2008
by
Davi Arnaut
Browse files
Options
Browse Files
Download
Plain Diff
Merge from parent branch.
parents
0406d409
a2841cf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
sql/log_event.cc
sql/log_event.cc
+10
-2
No files found.
sql/log_event.cc
View file @
2714b57b
...
...
@@ -8061,7 +8061,6 @@ Write_rows_log_event::do_before_row_operations(const Slave_reporting_capability
*/
}
m_table
->
file
->
ha_start_bulk_insert
(
0
);
/*
We need TIMESTAMP_NO_AUTO_SET otherwise ha_write_row() will not use fill
any TIMESTAMP column with data from the row but instead will use
...
...
@@ -8200,7 +8199,16 @@ Rows_log_event::write_row(const Relay_log_info *const rli,
/* unpack row into table->record[0] */
error
=
unpack_current_row
(
rli
);
// TODO: how to handle errors?
if
(
m_curr_row
==
m_rows_buf
)
{
/* this is the first row to be inserted, we estimate the rows with
the size of the first row and use that value to initialize
storage engine for bulk insertion */
ulong
estimated_rows
=
(
m_rows_end
-
m_curr_row
)
/
(
m_curr_row_end
-
m_curr_row
);
m_table
->
file
->
ha_start_bulk_insert
(
estimated_rows
);
}
#ifndef DBUG_OFF
DBUG_DUMP
(
"record[0]"
,
table
->
record
[
0
],
table
->
s
->
reclength
);
DBUG_PRINT_BITSET
(
"debug"
,
"write_set = %s"
,
table
->
write_set
);
...
...
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