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
074eceea
Commit
074eceea
authored
Aug 09, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/mydev/mysql-4.1
into mysql.com:/home/mydev/mysql-4.1-4100
parents
1cfad390
2dd804e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
sql/ha_myisam.cc
sql/ha_myisam.cc
+21
-1
No files found.
sql/ha_myisam.cc
View file @
074eceea
...
@@ -957,15 +957,21 @@ int ha_myisam::indexes_are_disabled(void)
...
@@ -957,15 +957,21 @@ int ha_myisam::indexes_are_disabled(void)
start_bulk_insert(rows)
start_bulk_insert(rows)
rows Rows to be inserted
rows Rows to be inserted
0 if we don't know
0 if we don't know
NOTICE
Do not forget to call end_bulk_insert() later!
*/
*/
void
ha_myisam
::
start_bulk_insert
(
ha_rows
rows
)
void
ha_myisam
::
start_bulk_insert
(
ha_rows
rows
)
{
{
DBUG_ENTER
(
"ha_myisam::start_bulk_insert"
);
THD
*
thd
=
current_thd
;
THD
*
thd
=
current_thd
;
ulong
size
=
min
(
thd
->
variables
.
read_buff_size
,
table
->
avg_row_length
*
rows
);
ulong
size
=
min
(
thd
->
variables
.
read_buff_size
,
table
->
avg_row_length
*
rows
);
DBUG_PRINT
(
"info"
,(
"start_bulk_insert: rows %lu size %lu"
,
(
ulong
)
rows
,
size
));
/* don't enable row cache if too few rows */
/* don't enable row cache if too few rows */
if
(
!
rows
&&
rows
>
MI_MIN_ROWS_TO_USE_WRITE_CACHE
)
if
(
!
rows
||
(
rows
>
MI_MIN_ROWS_TO_USE_WRITE_CACHE
)
)
mi_extra
(
file
,
HA_EXTRA_WRITE_CACHE
,
(
void
*
)
&
size
);
mi_extra
(
file
,
HA_EXTRA_WRITE_CACHE
,
(
void
*
)
&
size
);
can_enable_indexes
=
(
file
->
s
->
state
.
key_map
==
can_enable_indexes
=
(
file
->
s
->
state
.
key_map
==
...
@@ -989,8 +995,22 @@ void ha_myisam::start_bulk_insert(ha_rows rows)
...
@@ -989,8 +995,22 @@ void ha_myisam::start_bulk_insert(ha_rows rows)
mi_init_bulk_insert
(
file
,
thd
->
variables
.
bulk_insert_buff_size
,
rows
);
mi_init_bulk_insert
(
file
,
thd
->
variables
.
bulk_insert_buff_size
,
rows
);
}
}
}
}
DBUG_VOID_RETURN
;
}
}
/*
end special bulk-insert optimizations,
which have been activated by start_bulk_insert().
SYNOPSIS
end_bulk_insert()
no arguments
RETURN
0 OK
!= 0 Error
*/
int
ha_myisam
::
end_bulk_insert
()
int
ha_myisam
::
end_bulk_insert
()
{
{
mi_end_bulk_insert
(
file
);
mi_end_bulk_insert
(
file
);
...
...
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