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
ba6f9943
Commit
ba6f9943
authored
Jan 31, 2024
by
Nikita Malyavin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
online alter: show examined rows in the progress report
parent
3059f274
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
36 deletions
+38
-36
mysql-test/main/alter_table_online_debug.result
mysql-test/main/alter_table_online_debug.result
+27
-27
mysql-test/main/alter_table_online_debug.test
mysql-test/main/alter_table_online_debug.test
+9
-9
sql/log_event_server.cc
sql/log_event_server.cc
+2
-0
No files found.
mysql-test/main/alter_table_online_debug.result
View file @
ba6f9943
...
...
@@ -412,29 +412,29 @@ update t1 set b= 666 where a = 6;
set debug_sync= 'now SIGNAL start_replication';
# First signal is for log description event.
set debug_sync= 'now WAIT_FOR applied';
select stage, progress from INFORMATION_SCHEMA.PROCESSLIST where id = @con;
stage progress
3 53.390
select stage, progress
, examined_rows
from INFORMATION_SCHEMA.PROCESSLIST where id = @con;
stage progress
examined_rows
3 53.390
0
set debug_sync= 'now SIGNAL proceed WAIT_FOR applied';
select stage, progress from INFORMATION_SCHEMA.PROCESSLIST where id = @con;
stage progress
3 63.559
select stage, progress
, examined_rows
from INFORMATION_SCHEMA.PROCESSLIST where id = @con;
stage progress
examined_rows
3 63.559
1
set debug_sync= 'now SIGNAL proceed WAIT_FOR applied';
select stage, progress from INFORMATION_SCHEMA.PROCESSLIST where id = @con;
stage progress
3 71.610
select stage, progress
, examined_rows
from INFORMATION_SCHEMA.PROCESSLIST where id = @con;
stage progress
examined_rows
3 71.610
2
set debug_sync= 'now SIGNAL proceed WAIT_FOR applied';
select stage, progress from INFORMATION_SCHEMA.PROCESSLIST where id = @con;
stage progress
3 81.780
select stage, progress
, examined_rows
from INFORMATION_SCHEMA.PROCESSLIST where id = @con;
stage progress
examined_rows
3 81.780
3
set debug_sync= 'now SIGNAL proceed WAIT_FOR applied';
select stage, progress from INFORMATION_SCHEMA.PROCESSLIST where id = @con;
stage progress
3 89.831
select stage, progress
, examined_rows
from INFORMATION_SCHEMA.PROCESSLIST where id = @con;
stage progress
examined_rows
3 89.831
4
set debug_sync= 'now SIGNAL proceed WAIT_FOR applied';
select stage, progress from INFORMATION_SCHEMA.PROCESSLIST where id = @con;
stage progress
3 100.000
select stage, progress
, examined_rows
from INFORMATION_SCHEMA.PROCESSLIST where id = @con;
stage progress
examined_rows
3 100.000
5
set debug_sync= 'now SIGNAL proceed WAIT_FOR locking';
begin;
update t1 set b= 222 where a = 2;
...
...
@@ -442,17 +442,17 @@ update t1 set b= 333 where a = 3;
update t1 set b= 444 where a = 4;
commit;
set debug_sync= 'now SIGNAL end WAIT_FOR applied';
select stage, progress from INFORMATION_SCHEMA.PROCESSLIST where id = @con;
stage progress
4 33.333
select stage, progress
, examined_rows
from INFORMATION_SCHEMA.PROCESSLIST where id = @con;
stage progress
examined_rows
4 33.333
6
set debug_sync= 'now SIGNAL proceed WAIT_FOR applied';
select stage, progress from INFORMATION_SCHEMA.PROCESSLIST where id = @con;
stage progress
4 66.667
select stage, progress
, examined_rows
from INFORMATION_SCHEMA.PROCESSLIST where id = @con;
stage progress
examined_rows
4 66.667
7
set debug_sync= 'now SIGNAL proceed WAIT_FOR applied';
select stage, progress from INFORMATION_SCHEMA.PROCESSLIST where id = @con;
stage progress
4 100.000
select stage, progress
, examined_rows
from INFORMATION_SCHEMA.PROCESSLIST where id = @con;
stage progress
examined_rows
4 100.000
8
set debug_sync= 'now SIGNAL proceed';
connection default;
select * from t1;
...
...
mysql-test/main/alter_table_online_debug.test
View file @
ba6f9943
...
...
@@ -510,22 +510,22 @@ eval set @con= $con;
--
echo
# First signal is for log description event.
set
debug_sync
=
'now WAIT_FOR applied'
;
select
stage
,
progress
from
INFORMATION_SCHEMA
.
PROCESSLIST
where
id
=
@
con
;
select
stage
,
progress
,
examined_rows
from
INFORMATION_SCHEMA
.
PROCESSLIST
where
id
=
@
con
;
set
debug_sync
=
'now SIGNAL proceed WAIT_FOR applied'
;
select
stage
,
progress
from
INFORMATION_SCHEMA
.
PROCESSLIST
where
id
=
@
con
;
select
stage
,
progress
,
examined_rows
from
INFORMATION_SCHEMA
.
PROCESSLIST
where
id
=
@
con
;
set
debug_sync
=
'now SIGNAL proceed WAIT_FOR applied'
;
select
stage
,
progress
from
INFORMATION_SCHEMA
.
PROCESSLIST
where
id
=
@
con
;
select
stage
,
progress
,
examined_rows
from
INFORMATION_SCHEMA
.
PROCESSLIST
where
id
=
@
con
;
set
debug_sync
=
'now SIGNAL proceed WAIT_FOR applied'
;
select
stage
,
progress
from
INFORMATION_SCHEMA
.
PROCESSLIST
where
id
=
@
con
;
select
stage
,
progress
,
examined_rows
from
INFORMATION_SCHEMA
.
PROCESSLIST
where
id
=
@
con
;
set
debug_sync
=
'now SIGNAL proceed WAIT_FOR applied'
;
select
stage
,
progress
from
INFORMATION_SCHEMA
.
PROCESSLIST
where
id
=
@
con
;
select
stage
,
progress
,
examined_rows
from
INFORMATION_SCHEMA
.
PROCESSLIST
where
id
=
@
con
;
set
debug_sync
=
'now SIGNAL proceed WAIT_FOR applied'
;
select
stage
,
progress
from
INFORMATION_SCHEMA
.
PROCESSLIST
where
id
=
@
con
;
select
stage
,
progress
,
examined_rows
from
INFORMATION_SCHEMA
.
PROCESSLIST
where
id
=
@
con
;
set
debug_sync
=
'now SIGNAL proceed WAIT_FOR locking'
;
begin
;
...
...
@@ -537,13 +537,13 @@ update t1 set b= 444 where a = 4;
commit
;
set
debug_sync
=
'now SIGNAL end WAIT_FOR applied'
;
select
stage
,
progress
from
INFORMATION_SCHEMA
.
PROCESSLIST
where
id
=
@
con
;
select
stage
,
progress
,
examined_rows
from
INFORMATION_SCHEMA
.
PROCESSLIST
where
id
=
@
con
;
set
debug_sync
=
'now SIGNAL proceed WAIT_FOR applied'
;
select
stage
,
progress
from
INFORMATION_SCHEMA
.
PROCESSLIST
where
id
=
@
con
;
select
stage
,
progress
,
examined_rows
from
INFORMATION_SCHEMA
.
PROCESSLIST
where
id
=
@
con
;
set
debug_sync
=
'now SIGNAL proceed WAIT_FOR applied'
;
select
stage
,
progress
from
INFORMATION_SCHEMA
.
PROCESSLIST
where
id
=
@
con
;
select
stage
,
progress
,
examined_rows
from
INFORMATION_SCHEMA
.
PROCESSLIST
where
id
=
@
con
;
set
debug_sync
=
'now SIGNAL proceed'
;
--
connection
default
...
...
sql/log_event_server.cc
View file @
ba6f9943
...
...
@@ -5202,6 +5202,8 @@ int Rows_log_event::do_apply_event(rpl_group_info *rgi)
}
// row processing loop
while
(
error
==
0
&&
(
m_curr_row
!=
m_rows_end
));
thd
->
inc_examined_row_count
(
m_row_count
);
/*
Restore the sql_mode after the rows event is processed.
*/
...
...
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