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
1f1fa7e0
Commit
1f1fa7e0
authored
Jun 14, 2022
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.5 into 10.6
parents
1f3f4571
4849d94f
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
140 additions
and
30 deletions
+140
-30
debian/mariadb-test-data.lintian-overrides
debian/mariadb-test-data.lintian-overrides
+7
-0
debian/mariadb-test.lintian-overrides
debian/mariadb-test.lintian-overrides
+5
-0
debian/source/lintian-overrides
debian/source/lintian-overrides
+72
-19
mysql-test/suite/parts/inc/part_alter_values.inc
mysql-test/suite/parts/inc/part_alter_values.inc
+8
-0
mysql-test/suite/parts/r/partition_alter_innodb.result
mysql-test/suite/parts/r/partition_alter_innodb.result
+7
-0
mysql-test/suite/parts/r/partition_alter_maria.result
mysql-test/suite/parts/r/partition_alter_maria.result
+7
-0
mysql-test/suite/parts/r/partition_alter_myisam.result
mysql-test/suite/parts/r/partition_alter_myisam.result
+7
-0
sql/sql_partition.cc
sql/sql_partition.cc
+26
-9
storage/innobase/buf/buf0flu.cc
storage/innobase/buf/buf0flu.cc
+1
-2
No files found.
debian/mariadb-test-data.lintian-overrides
View file @
1f1fa7e0
# These should be moved, see https://jira.mariadb.org/browse/MDEV-21654
arch-dependent-file-in-usr-share usr/share/mysql/mysql-test/suite/plugins/pam/pam_mariadb_mtr.so
arch-independent-package-contains-binary-or-object usr/share/mysql/mysql-test/suite/plugins/pam/pam_mariadb_mtr.so
# Mainly for support for *BSD family. Not right way to do but this is test package and not for production
incorrect-path-for-interpreter /usr/bin/env perl != /usr/bin/perl [usr/share/mysql/mysql-test/std_data/checkDBI_DBD-MariaDB.pl]
incorrect-path-for-interpreter /usr/bin/env perl != /usr/bin/perl [usr/share/mysql/mysql-test/suite/engines/rr_trx/run_stress_tx_rr.pl]
incorrect-path-for-interpreter /usr/bin/env perl != /usr/bin/perl [usr/share/mysql/mysql-test/suite/funcs_1/lib/DataGen_local.pl]
incorrect-path-for-interpreter /usr/bin/env perl != /usr/bin/perl [usr/share/mysql/mysql-test/suite/funcs_1/lib/DataGen_modify.pl]
incorrect-path-for-interpreter /usr/bin/env perl != /usr/bin/perl [usr/share/mysql/mysql-test/suite/funcs_2/lib/gen_charset_utf8.pl]
incorrect-path-for-interpreter /usr/bin/env perl != /usr/bin/perl [usr/share/mysql/mysql-test/suite/rpl/extension/checksum.pl]
# Intentional for test files
national-encoding usr/share/mysql/mysql-test/*
# Extra test documentation files that really need to be kept in context in test directory
...
...
debian/mariadb-test.lintian-overrides
View file @
1f1fa7e0
# These should be moved, see https://jira.mariadb.org/browse/MDEV-21653
arch-dependent-file-in-usr-share usr/share/mysql/mysql-test/lib/My/SafeProcess/my_safe_process
arch-dependent-file-in-usr-share usr/share/mysql/mysql-test/lib/My/SafeProcess/wsrep_check_version
# Mainly for support for *BSD family. Not right way to do but this is test package and not for production
incorrect-path-for-interpreter /usr/bin/env perl != /usr/bin/perl [usr/share/mysql/mysql-test/lib/process-purecov-annotations.pl]
incorrect-path-for-interpreter /usr/bin/env perl != /usr/bin/perl [usr/share/mysql/mysql-test/lib/v1/mysql-test-run.pl]
incorrect-path-for-interpreter /usr/bin/env perl != /usr/bin/perl [usr/share/mysql/mysql-test/mysql-stress-test.pl]
incorrect-path-for-interpreter /usr/bin/env perl != /usr/bin/perl [usr/share/mysql/mysql-test/mysql-test-run.pl]
debian/source/lintian-overrides
View file @
1f1fa7e0
...
...
@@ -2,31 +2,84 @@
# since package breaks/replaces these but at the same time also provides them
version-substvar-for-external-package mariadb-client-core-10.6 -> mysql-client-5.5
version-substvar-for-external-package mariadb-server-10.6 -> mysql-server
version-substvar-for-external-package mariadb-server-10.6 -> mysql-server
version-substvar-for-external-package libmariadb-dev -> libmysqlclient-dev
version-substvar-for-external-package libmariadb-dev -> libmysqld-dev
version-substvar-for-external-package mariadb-server-10.6 -> mysql-client-5.5
version-substvar-for-external-package mariadb-server-10.6 -> mysql-client-5.6
version-substvar-for-external-package mariadb-server-10.6 -> mysql-client-5.7
version-substvar-for-external-package mariadb-server-10.6 -> mysql-client-8.0
version-substvar-for-external-package mariadb-client-10.6 -> mysql-client-core-5.1
version-substvar-for-external-package mariadb-client-10.6 -> mysql-client-core-5.1
version-substvar-for-external-package mariadb-client-10.6 -> mysql-client-core-5.5
version-substvar-for-external-package mariadb-client-10.6 -> mysql-client-core-5.5
version-substvar-for-external-package mariadb-client-10.6 -> mysql-client-core-5.6
version-substvar-for-external-package mariadb-client-10.6 -> mysql-client-core-5.6
version-substvar-for-external-package mariadb-client-10.6 -> mysql-client-core-5.7
version-substvar-for-external-package mariadb-client-10.6 -> mysql-client-core-5.7
version-substvar-for-external-package mariadb-client-10.6 -> mysql-client-core-8.0
version-substvar-for-external-package mariadb-client-10.6 -> mysql-client-core-8.0
version-substvar-for-external-package mariadb-server-10.6 -> mysql-client-5.*
version-substvar-for-external-package mariadb-server-10.6 -> mysql-client-8.*
version-substvar-for-external-package mariadb-client-10.6 -> mysql-client-core-5.*
version-substvar-for-external-package mariadb-client-10.6 -> mysql-client-core-8.*
version-substvar-for-external-package libmariadbd-dev -> libmariadbclient-dev
# ColumnStore not used in Debian, safe to ignore. Reported upstream in https://jira.mariadb.org/browse/MDEV-24124
source-is-missing storage/columnstore/columnstore/utils/jemalloc/libjemalloc.so.2
# Must be fixed upstream
source-is-missing storage/mroonga/vendor/groonga/examples/dictionary/html/js/jquery-ui-
1.8.18.custom.js*
source-is-missing storage/mroonga/vendor/groonga/examples/dictionary/html/js/jquery-ui-
*.custom.js
# Intentional control relationships
version-substvar-for-external-package Replaces *
${source:Version}
libmariadbd-dev -> libmariadbclient-dev
version-substvar-for-external-package Replaces *
${source:Version}
libmariadb-dev -> libmysqlclient-dev
version-substvar-for-external-package Replaces *
${source:Version}
libmariadb-dev -> libmysqld-dev
version-substvar-for-external-package Replaces * libmariadbd-dev -> libmariadbclient-dev
version-substvar-for-external-package Replaces * libmariadb-dev -> libmysqlclient-dev
version-substvar-for-external-package Replaces * libmariadb-dev -> libmysqld-dev
# We can't change build dependencies on a stable branch (10.5..10.8) so just override this
missing-build-dependency-for-dh-addon systemd *
# Data or test files where long lines are justified
very-long-line-length-in-source-file *.test *
very-long-line-length-in-source-file *.result *
very-long-line-length-in-source-file BUILD/compile-*
very-long-line-length-in-source-file *COPYING.rtf *
# These are mainly found under extra/wolfssl
very-long-line-length-in-source-file *.cproject *
very-long-line-length-in-source-file *.md *
very-long-line-length-in-source-file *.scfg *
very-long-line-length-in-source-file *.launch *
very-long-line-length-in-source-file extra/wolfssl/wolfssl/IDE/Espressif/ESP-IDF/test/test_wolfssl.c *
very-long-line-length-in-source-file extra/wolfssl/wolfssl/configure.ac *
very-long-line-length-in-source-file extra/wolfssl/wolfssl/doc/formats/html/html_changes/tabs.css *
# Preprocessed C files which have long lines
very-long-line-length-in-source-file extra/wolfssl/wolfssl/wolfcrypt/src/*.i *
# These are all results for test cases and similar so they can be
# especially formatted to be too long
very-long-line-length-in-source-file mysql-test/*.dump *
very-long-line-length-in-source-file mysql-test/*.inc *
very-long-line-length-in-source-file mysql-test/*.rdiff *
very-long-line-length-in-source-file mysql-test/*.txt *
very-long-line-length-in-source-file mysql-test/*.weekly *
# Test file
very-long-line-length-in-source-file plugin/handler_socket/regtest/test_01_lib/test19.expected *
# SQL source file that has very long inserts/selects
very-long-line-length-in-source-file mysql-test/std_data/init_file_longline_3816.sql *
very-long-line-length-in-source-file scripts/fill_help_tables.sql *
very-long-line-length-in-source-file scripts/mysql_system_tables.sql *
very-long-line-length-in-source-file scripts/mysql_test_data_timezone.sql *
# Machine formated HTML
very-long-line-length-in-source-file sql/share/charsets/languages.html *
very-long-line-length-in-source-file sql/share/errmsg-utf8.txt *
# Very long test string
very-long-line-length-in-source-file storage/archive/archive_test.c line 30 is 1051 characters long (>512)
# autogenerated thrift file
very-long-line-length-in-source-file storage/cassandra/gen-cpp/cassandra_types.h *
# ColumnStore ignores
# In Directory mysql-test are some long test includes
very-long-line-length-in-source-file storage/columnstore/columnstore/.drone.jsonnet *
very-long-line-length-in-source-file storage/columnstore/columnstore/CMakeLists.txt *
very-long-line-length-in-source-file storage/columnstore/columnstore/mysql-test/columnstore/csinternal/include/autopilot_create_datatypetestm_tables.inc *
very-long-line-length-in-source-file storage/columnstore/columnstore/mysql-test/columnstore/csinternal/include/autopilot_create_datatypeupdate_table.inc *
very-long-line-length-in-source-file storage/columnstore/columnstore/*.xmi *
very-long-line-length-in-source-file storage/columnstore/columnstore/dbcon/doc/q19_plan.txt *
very-long-line-length-in-source-file storage/columnstore/columnstore/utils/udfsdk/docs/source/reference/mcsv1Context.rst *
very-long-line-length-in-source-file storage/columnstore/columnstore/utils/winport/win_setup_mysql_part1.sql *
# Minified CSS files. These appear in several places
very-long-line-length-in-source-file *badge_only.css *
very-long-line-length-in-source-file *theme.css line *
# General storage ignores
very-long-line-length-in-source-file storage/mroonga/vendor/groonga/examples/dictionary/html/css/smoothness/jquery-ui-1.8.12.custom.css *
very-long-line-length-in-source-file storage/rocksdb/mysql-test/rocksdb/t/bypass_select_basic_bloom-master.opt *
very-long-line-length-in-source-file storage/rocksdb/mysql-test/rocksdb/t/type_enum.inc *
very-long-line-length-in-source-file storage/rocksdb/mysql-test/rocksdb/t/type_set.inc *
very-long-line-length-in-source-file storage/rocksdb/rocksdb/docs/_includes/footer.html *
very-long-line-length-in-source-file storage/rocksdb/rocksdb/docs/_posts/*.markdown line *
very-long-line-length-in-source-file storage/spider/mysql-test/spider/bugfix/include/sql_mode_init.inc *
very-long-line-length-in-source-file storage/tokudb/PerconaFT/cmake_modules/TokuBuildTagDatabases.cmake *
very-long-line-length-in-source-file storage/tokudb/PerconaFT/third_party/xz-4.999.9beta/m4/po.m4 *
# These are generated files which should not make any harm
source-contains-autogenerated-visual-c++-file storage/columnstore/columnstore/*.rc
source-contains-autogenerated-visual-c++-file storage/columnstore/columnstore/*.h
source-contains-autogenerated-visual-c++-file win/upgrade_wizard/resource.h
source-contains-autogenerated-visual-c++-file win/upgrade_wizard/upgrade.rc
mysql-test/suite/parts/inc/part_alter_values.inc
View file @
1f1fa7e0
...
...
@@ -78,3 +78,11 @@ if (`SELECT IF('$engine' != 'InnoDB', 1, 0)`)
--
remove_files_wildcard
$MYSQLTEST_VARDIR
/
tmp
/
mdev_27065
*
--
rmdir
$MYSQLTEST_VARDIR
/
tmp
/
mdev_27065
--
echo
#
--
echo
# MDEV-26127 Assertion `err != DB_DUPLICATE_KEY' failed or InnoDB: Failing assertion: id != 0 on ALTER ... REBUILD PARTITION
--
echo
#
--
eval
CREATE
TABLE
t1
(
c
INT
)
ENGINE
=
$engine
PARTITION
BY
KEY
(
c
)
PARTITIONS
4
;
LOCK
TABLES
t1
WRITE
,
t1
AS
a
READ
;
ALTER
TABLE
t1
REBUILD
PARTITION
p0
;
DROP
TABLE
t1
;
mysql-test/suite/parts/r/partition_alter_innodb.result
View file @
1f1fa7e0
...
...
@@ -62,6 +62,13 @@ Warnings:
Warning 1618 <DATA DIRECTORY> table option of old schema is ignored
DROP TABLE t1;
#
# MDEV-26127 Assertion `err != DB_DUPLICATE_KEY' failed or InnoDB: Failing assertion: id != 0 on ALTER ... REBUILD PARTITION
#
CREATE TABLE t1 (c INT) ENGINE=InnoDB PARTITION BY KEY(c) PARTITIONS 4;;
LOCK TABLES t1 WRITE, t1 AS a READ;
ALTER TABLE t1 REBUILD PARTITION p0;
DROP TABLE t1;
#
# MDEV-28079 Shutdown hangs after altering innodb partition fts table
#
CREATE TABLE t1(f1 INT, f2 CHAR(100))ENGINE=InnoDB PARTITION BY HASH(f1) PARTITIONS 2;
...
...
mysql-test/suite/parts/r/partition_alter_maria.result
View file @
1f1fa7e0
...
...
@@ -95,3 +95,10 @@ PARTITION p1 VALUES LESS THAN MAXVALUE
Warnings:
Warning 1618 <INDEX DIRECTORY> table option of old schema is ignored
DROP TABLE t2;
#
# MDEV-26127 Assertion `err != DB_DUPLICATE_KEY' failed or InnoDB: Failing assertion: id != 0 on ALTER ... REBUILD PARTITION
#
CREATE TABLE t1 (c INT) ENGINE=Aria PARTITION BY KEY(c) PARTITIONS 4;;
LOCK TABLES t1 WRITE, t1 AS a READ;
ALTER TABLE t1 REBUILD PARTITION p0;
DROP TABLE t1;
mysql-test/suite/parts/r/partition_alter_myisam.result
View file @
1f1fa7e0
...
...
@@ -68,6 +68,13 @@ PARTITION p1 VALUES LESS THAN MAXVALUE
Warnings:
Warning 1618 <INDEX DIRECTORY> table option of old schema is ignored
DROP TABLE t2;
#
# MDEV-26127 Assertion `err != DB_DUPLICATE_KEY' failed or InnoDB: Failing assertion: id != 0 on ALTER ... REBUILD PARTITION
#
CREATE TABLE t1 (c INT) ENGINE=MyISAM PARTITION BY KEY(c) PARTITIONS 4;;
LOCK TABLES t1 WRITE, t1 AS a READ;
ALTER TABLE t1 REBUILD PARTITION p0;
DROP TABLE t1;
create table t1 ( c1 int, c2 int, c3 varchar(100)) delay_key_write=1
partition by key(c1) (
partition p01 data directory = 'MYSQL_TMP_DIR'
...
...
sql/sql_partition.cc
View file @
1f1fa7e0
/* Copyright (c) 2005, 2017, Oracle and/or its affiliates.
Copyright (c) 2009, 202
0
, MariaDB
Copyright (c) 2009, 202
2
, MariaDB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -6823,16 +6823,33 @@ static bool alter_partition_lock_handling(ALTER_PARTITION_PARAM_TYPE *lpt)
static
int
alter_close_table
(
ALTER_PARTITION_PARAM_TYPE
*
lpt
)
{
int
error
=
0
;
THD
*
thd
=
lpt
->
thd
;
TABLE_SHARE
*
share
=
lpt
->
table
->
s
;
DBUG_ENTER
(
"alter_close_table"
);
if
(
lpt
->
table
->
db_stat
)
{
error
=
mysql_lock_remove
(
lpt
->
thd
,
lpt
->
thd
->
lock
,
lpt
->
table
);
error
=
lpt
->
table
->
file
->
ha_close
();
lpt
->
table
->
db_stat
=
0
;
// Mark file closed
}
DBUG_RETURN
(
error
);
TABLE
*
table
=
thd
->
open_tables
;
do
{
table
=
find_locked_table
(
table
,
share
->
db
.
str
,
share
->
table_name
.
str
);
if
(
!
table
)
{
DBUG_RETURN
(
0
);
}
if
(
table
->
db_stat
)
{
if
(
int
error
=
mysql_lock_remove
(
thd
,
thd
->
lock
,
table
))
{
DBUG_RETURN
(
error
);
}
if
(
int
error
=
table
->
file
->
ha_close
())
{
DBUG_RETURN
(
error
);
}
table
->
db_stat
=
0
;
// Mark file closed
}
}
while
((
table
=
table
->
next
));
DBUG_RETURN
(
0
);
}
...
...
storage/innobase/buf/buf0flu.cc
View file @
1f1fa7e0
...
...
@@ -1240,7 +1240,6 @@ static void buf_flush_LRU_list_batch(ulint max, flush_counters_t *n)
n
->
flushed
+
n
->
evicted
<
max
)
||
recv_recovery_is_on
());
++
scanned
)
{
retry:
buf_page_t
*
prev
=
UT_LIST_GET_PREV
(
LRU
,
bpage
);
const
lsn_t
oldest_modification
=
bpage
->
oldest_modification
();
buf_pool
.
lru_hp
.
set
(
prev
);
...
...
@@ -1276,7 +1275,6 @@ static void buf_flush_LRU_list_batch(ulint max, flush_counters_t *n)
mysql_mutex_lock
(
&
buf_pool
.
mutex
);
if
(
p
.
second
)
buf_pool
.
stat
.
n_pages_written
+=
p
.
second
;
bpage
=
buf_pool
.
lru_hp
.
get
();
goto
retry
;
}
else
...
...
@@ -1308,6 +1306,7 @@ static void buf_flush_LRU_list_batch(ulint max, flush_counters_t *n)
must_skip:
/* Can't evict or dispatch this block. Go to previous. */
ut_ad
(
buf_pool
.
lru_hp
.
is_hp
(
prev
));
retry:
bpage
=
buf_pool
.
lru_hp
.
get
();
}
...
...
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