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
2ed1383f
Commit
2ed1383f
authored
Dec 04, 2008
by
Mikael Ronstrom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
call ha_release_temporary_latches to fix bug 32149
parent
f31e349f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
sql/sql_insert.cc
sql/sql_insert.cc
+3
-0
sql/sql_select.cc
sql/sql_select.cc
+7
-0
storage/myisam/ha_myisam.cc
storage/myisam/ha_myisam.cc
+3
-0
No files found.
sql/sql_insert.cc
View file @
2ed1383f
...
@@ -3066,6 +3066,9 @@ bool select_insert::send_data(List<Item> &values)
...
@@ -3066,6 +3066,9 @@ bool select_insert::send_data(List<Item> &values)
}
}
}
}
// Release latches in case bulk insert takes a long time
ha_release_temporary_latches
(
thd
);
error
=
write_record
(
thd
,
table
,
&
info
);
error
=
write_record
(
thd
,
table
,
&
info
);
table
->
auto_increment_field_not_null
=
FALSE
;
table
->
auto_increment_field_not_null
=
FALSE
;
...
...
sql/sql_select.cc
View file @
2ed1383f
...
@@ -10526,6 +10526,9 @@ free_tmp_table(THD *thd, TABLE *entry)
...
@@ -10526,6 +10526,9 @@ free_tmp_table(THD *thd, TABLE *entry)
save_proc_info
=
thd
->
proc_info
;
save_proc_info
=
thd
->
proc_info
;
thd_proc_info
(
thd
,
"removing tmp table"
);
thd_proc_info
(
thd
,
"removing tmp table"
);
// Release latches since this can take a long time
ha_release_temporary_latches
(
thd
);
if
(
entry
->
file
)
if
(
entry
->
file
)
{
{
if
(
entry
->
db_stat
)
if
(
entry
->
db_stat
)
...
@@ -10571,6 +10574,10 @@ bool create_myisam_from_heap(THD *thd, TABLE *table, TMP_TABLE_PARAM *param,
...
@@ -10571,6 +10574,10 @@ bool create_myisam_from_heap(THD *thd, TABLE *table, TMP_TABLE_PARAM *param,
table
->
file
->
print_error
(
error
,
MYF
(
0
));
table
->
file
->
print_error
(
error
,
MYF
(
0
));
DBUG_RETURN
(
1
);
DBUG_RETURN
(
1
);
}
}
// Release latches since this can take a long time
ha_release_temporary_latches
(
thd
);
new_table
=
*
table
;
new_table
=
*
table
;
share
=
*
table
->
s
;
share
=
*
table
->
s
;
new_table
.
s
=
&
share
;
new_table
.
s
=
&
share
;
...
...
storage/myisam/ha_myisam.cc
View file @
2ed1383f
...
@@ -1081,6 +1081,9 @@ int ha_myisam::repair(THD *thd, MI_CHECK ¶m, bool do_optimize)
...
@@ -1081,6 +1081,9 @@ int ha_myisam::repair(THD *thd, MI_CHECK ¶m, bool do_optimize)
param
.
out_flag
=
0
;
param
.
out_flag
=
0
;
strmov
(
fixed_name
,
file
->
filename
);
strmov
(
fixed_name
,
file
->
filename
);
// Release latches since this can take a long time
ha_release_temporary_latches
(
thd
);
// Don't lock tables if we have used LOCK TABLE
// Don't lock tables if we have used LOCK TABLE
if
(
!
thd
->
locked_tables
&&
if
(
!
thd
->
locked_tables
&&
mi_lock_database
(
file
,
table
->
s
->
tmp_table
?
F_EXTRA_LCK
:
F_WRLCK
))
mi_lock_database
(
file
,
table
->
s
->
tmp_table
?
F_EXTRA_LCK
:
F_WRLCK
))
...
...
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