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
ae9a4799
Commit
ae9a4799
authored
Apr 18, 2024
by
Monty
Committed by
Sergei Golubchik
May 27, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-33938 Analyze table on sequences should be prohibited
parent
9e7e1f62
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
mysql-test/suite/sql_sequence/binlog.result
mysql-test/suite/sql_sequence/binlog.result
+0
-1
sql/sql_admin.cc
sql/sql_admin.cc
+1
-1
sql/sql_statistics.cc
sql/sql_statistics.cc
+2
-1
No files found.
mysql-test/suite/sql_sequence/binlog.result
View file @
ae9a4799
...
...
@@ -17,7 +17,6 @@ Table Op Msg_type Msg_text
test.s1 optimize note The storage engine for the table doesn't support optimize
analyze table s1;
Table Op Msg_type Msg_text
test.s1 analyze status Engine-independent statistics collected
test.s1 analyze note The storage engine for the table doesn't support analyze
repair table s1;
Table Op Msg_type Msg_text
...
...
sql/sql_admin.cc
View file @
ae9a4799
...
...
@@ -924,7 +924,7 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables,
appropriate action is to just not collect EITS stats for this command.
*/
collect_eis
=
(
tab
le
->
table
->
s
->
table_category
==
TABLE_CATEGORY_USER
&&
(
tab
->
s
->
table_category
==
TABLE_CATEGORY_USER
&&
!
tab
->
s
->
sequence
&&
!
(
lex
->
alter_info
.
partition_flags
&
ALTER_PARTITION_ADMIN
)
&&
(
check_eits_collection_allowed
(
thd
)
||
lex
->
with_persistent_for_clause
));
...
...
sql/sql_statistics.cc
View file @
ae9a4799
...
...
@@ -3268,7 +3268,8 @@ read_statistics_for_tables(THD *thd, TABLE_LIST *tables, bool force_reload)
TABLE_SHARE
*
table_share
;
/* Skip tables that can't have statistics. */
if
(
tl
->
is_view_or_derived
()
||
!
table
||
!
(
table_share
=
table
->
s
))
if
(
tl
->
is_view_or_derived
()
||
!
table
||
!
(
table_share
=
table
->
s
)
||
table_share
->
sequence
)
continue
;
/* Skip temporary tables */
if
(
table_share
->
tmp_table
!=
NO_TMP_TABLE
)
...
...
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