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
c28069be
Commit
c28069be
authored
Nov 08, 2002
by
salle@geopard.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge akeremidarski@work.mysql.com:/home/bk/mysql
into geopard.(none):/storage/bk/mysql-3.23
parents
e2f1950c
5d2f8e96
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
4 deletions
+21
-4
innobase/row/row0mysql.c
innobase/row/row0mysql.c
+19
-4
sql/sql_select.cc
sql/sql_select.cc
+2
-0
No files found.
innobase/row/row0mysql.c
View file @
c28069be
...
...
@@ -1000,8 +1000,8 @@ row_update_cascade_for_mysql(
or set null operation */
dict_table_t
*
table
)
/* in: table where we do the operation */
{
ulint
err
;
trx_t
*
trx
;
ulint
err
;
trx_t
*
trx
;
trx
=
thr_get_trx
(
thr
);
run_again:
...
...
@@ -1012,11 +1012,26 @@ row_update_cascade_for_mysql(
err
=
trx
->
error_state
;
/* Note that the cascade node is a subnode of another InnoDB
query graph node. We do a normal lock wait in this node, but
all errors are handled by the parent node. */
if
(
err
==
DB_LOCK_WAIT
)
{
que_thr_stop_for_mysql
(
thr
);
/* Handle lock wait here */
row_mysql_handle_errors
(
&
err
,
trx
,
thr
,
NULL
);
que_thr_stop_for_mysql
(
thr
);
srv_suspend_mysql_thread
(
thr
);
/* Note that a lock wait may also end in a lock wait timeout */
if
(
trx
->
error_state
!=
DB_SUCCESS
)
{
return
(
trx
->
error_state
);
}
/* Retry operation after a normal lock wait */
goto
run_again
;
}
...
...
sql/sql_select.cc
View file @
c28069be
...
...
@@ -4970,6 +4970,8 @@ end_write_group(JOIN *join, JOIN_TAB *join_tab __attribute__((unused)),
}
else
{
if
(
end_of_records
)
DBUG_RETURN
(
0
);
join
->
first_record
=
1
;
VOID
(
test_if_group_changed
(
join
->
group_fields
));
}
...
...
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