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
db962df2
Commit
db962df2
authored
Sep 11, 2008
by
Kristofer Pettersson
Browse files
Options
Browse Files
Download
Plain Diff
Auto merge.
parents
ee89d3f1
db98ae5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
sql/sql_insert.cc
sql/sql_insert.cc
+11
-5
No files found.
sql/sql_insert.cc
View file @
db962df2
...
...
@@ -2532,8 +2532,13 @@ bool Delayed_insert::handle_inserts(void)
thd_proc_info
(
&
thd
,
"upgrading lock"
);
if
(
thr_upgrade_write_delay_lock
(
*
thd
.
lock
->
locks
))
{
/* This can only happen if thread is killed by shutdown */
sql_print_error
(
ER
(
ER_DELAYED_CANT_CHANGE_LOCK
),
table
->
s
->
table_name
.
str
);
/*
This can happen if thread is killed either by a shutdown
or if another thread is removing the current table definition
from the table cache.
*/
my_error
(
ER_DELAYED_CANT_CHANGE_LOCK
,
MYF
(
ME_FATALERROR
),
table
->
s
->
table_name
.
str
);
goto
err
;
}
...
...
@@ -2688,9 +2693,10 @@ bool Delayed_insert::handle_inserts(void)
query_cache_invalidate3
(
&
thd
,
table
,
1
);
if
(
thr_reschedule_write_lock
(
*
thd
.
lock
->
locks
))
{
/* This should never happen */
sql_print_error
(
ER
(
ER_DELAYED_CANT_CHANGE_LOCK
),
table
->
s
->
table_name
.
str
);
/* This is not known to happen. */
my_error
(
ER_DELAYED_CANT_CHANGE_LOCK
,
MYF
(
ME_FATALERROR
),
table
->
s
->
table_name
.
str
);
goto
err
;
}
if
(
!
using_bin_log
)
table
->
file
->
extra
(
HA_EXTRA_WRITE_CACHE
);
...
...
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