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
3d4bdf76
Commit
3d4bdf76
authored
May 31, 2024
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Plain Diff
Merge 11.5 into 11.6
parents
aeffec60
c96b23f9
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
47 additions
and
46 deletions
+47
-46
appveyor.yml
appveyor.yml
+6
-2
client/mysqldump.cc
client/mysqldump.cc
+4
-7
mysql-test/main/mysqldump.result
mysql-test/main/mysqldump.result
+0
-36
mysql-test/suite/innodb/r/temp_truncate_freed.result
mysql-test/suite/innodb/r/temp_truncate_freed.result
+11
-0
mysql-test/suite/innodb/t/temp_truncate_freed.test
mysql-test/suite/innodb/t/temp_truncate_freed.test
+25
-0
storage/innobase/fsp/fsp0fsp.cc
storage/innobase/fsp/fsp0fsp.cc
+1
-1
No files found.
appveyor.yml
View file @
3d4bdf76
...
...
@@ -2,6 +2,9 @@ version: build-{build}~branch-{branch}
clone_depth
:
1
environment
:
OPENSSL_ROOT_DIR
:
C:/OpenSSL-v32-Win64
build_script
:
# dump some system info
-
echo processor='%PROCESSOR_IDENTIFIER%' , processor count= %NUMBER_OF_PROCESSORS%
...
...
@@ -15,14 +18,15 @@ build_script:
-
mkdir _build
-
cd _build
-
set BUILD_TYPE=MinSizeRel
-
set PATH=%OPENSSL_ROOT_DIR%;%PATH%
-
set GENERATOR=-GNinja
-
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
-
cmake -E time cmake %GENERATOR% .. -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DMYSQL_MAINTAINER_MODE=ERR -DFAST_BUILD=1 -DBISON_EXECUTABLE=C:\cygwin64\bin\bison.exe -DPLUGIN_PERFSCHEMA=NO -DPLUGIN_FEEDBACK=NO
-
cmake -E time cmake %GENERATOR% .. -D
WITH_SSL=system -DHAVE_OPENSSL_APPLINK_C=1 -DOPENSSL_ROOT_DIR=%OPENSSL_ROOT_DIR% -D
CMAKE_BUILD_TYPE=%BUILD_TYPE% -DMYSQL_MAINTAINER_MODE=ERR -DFAST_BUILD=1 -DBISON_EXECUTABLE=C:\cygwin64\bin\bison.exe -DPLUGIN_PERFSCHEMA=NO -DPLUGIN_FEEDBACK=NO
-
set /A jobs=2*%NUMBER_OF_PROCESSORS%
-
cmake -E time cmake --build . -j %jobs% --config %BUILD_TYPE% --target minbuild
test_script
:
-
set PATH=C:\Strawberry\perl\bin;%PATH%;C:\Program Files (x86)\Windows Kits\10\Debuggers\x64
-
set PATH=C:\Strawberry\perl\bin;%
OPENSSL_ROOT_DIR%;%
PATH%;C:\Program Files (x86)\Windows Kits\10\Debuggers\x64
-
cd %APPVEYOR_BUILD_FOLDER%\_build\mysql-test
-
set /A parallel=4*%NUMBER_OF_PROCESSORS%
-
perl mysql-test-run.pl --force --max-test-fail=10 --retry=2 --parallel=%parallel% --testcase-timeout=4 --suite=main --skip-test-list=%APPVEYOR_BUILD_FOLDER%\win\appveyor_skip_tests.txt --mysqld=--loose-innodb-flush-log-at-trx-commit=2
...
...
client/mysqldump.cc
View file @
3d4bdf76
...
...
@@ -815,14 +815,11 @@ static void write_header(FILE *sql_file, const char *db_name)
fprintf
(
sql_file
,
"/*!40103 SET TIME_ZONE='+00:00' */;
\n
"
);
}
if
(
!
path
)
if
(
!
multi_file_output
)
{
if
(
!
multi_file_output
)
{
/* We don't need unique checks as the table is created just before */
fprintf
(
md_result_file
,
"/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
\n
"
);
}
/* We don't need unique checks as the table is created just before */
fprintf
(
md_result_file
,
"/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
\n
"
);
fprintf
(
md_result_file
,
"/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
\n
"
);
}
...
...
mysql-test/main/mysqldump.result
View file @
3d4bdf76
...
...
@@ -6789,40 +6789,6 @@ set global max_connections=@save_max_connections;
#
# End of 11.4 tests
#
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
# Content of dump directory
mtr
mysql
...
...
@@ -6836,8 +6802,6 @@ create database db2;
use db2;
create table t1(i int);
insert into t1 values(2);
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
# Content of dump directory
db1
db2
...
...
mysql-test/suite/innodb/r/temp_truncate_freed.result
0 → 100644
View file @
3d4bdf76
set @old_innodb_buffer_pool_size = @@innodb_buffer_pool_size;
set @old_immediate_scrub_data_val= @@innodb_immediate_scrub_data_uncompressed;
SET GLOBAL innodb_immediate_scrub_data_uncompressed=1;
SET GLOBAL innodb_buffer_pool_size= 16777216;
CREATE TEMPORARY TABLE t1(c1 MEDIUMTEXT) ENGINE=InnoDB;
INSERT INTO t1 VALUES (repeat(1,16777215));
DROP TEMPORARY TABLE t1;
SET GLOBAL innodb_truncate_temporary_tablespace_now=1;
SET GLOBAL innodb_buffer_pool_size=10485760;
set global innodb_buffer_pool_size = @old_innodb_buffer_pool_size;
set global innodb_immediate_scrub_data_uncompressed = @old_immediate_scrub_data_val;
mysql-test/suite/innodb/t/temp_truncate_freed.test
0 → 100644
View file @
3d4bdf76
--
source
include
/
have_innodb
.
inc
set
@
old_innodb_buffer_pool_size
=
@@
innodb_buffer_pool_size
;
set
@
old_immediate_scrub_data_val
=
@@
innodb_immediate_scrub_data_uncompressed
;
SET
GLOBAL
innodb_immediate_scrub_data_uncompressed
=
1
;
SET
GLOBAL
innodb_buffer_pool_size
=
16777216
;
CREATE
TEMPORARY
TABLE
t1
(
c1
MEDIUMTEXT
)
ENGINE
=
InnoDB
;
INSERT
INTO
t1
VALUES
(
repeat
(
1
,
16777215
));
DROP
TEMPORARY
TABLE
t1
;
SET
GLOBAL
innodb_truncate_temporary_tablespace_now
=
1
;
let
$wait_timeout
=
180
;
let
$wait_condition
=
SELECT
SUBSTR
(
variable_value
,
1
,
30
)
=
'Completed resizing buffer pool'
FROM
information_schema
.
global_status
WHERE
LOWER
(
variable_name
)
=
'innodb_buffer_pool_resize_status'
;
SET
GLOBAL
innodb_buffer_pool_size
=
10485760
;
--
source
include
/
wait_condition
.
inc
set
global
innodb_buffer_pool_size
=
@
old_innodb_buffer_pool_size
;
set
global
innodb_immediate_scrub_data_uncompressed
=
@
old_immediate_scrub_data_val
;
--
source
include
/
wait_condition
.
inc
storage/innobase/fsp/fsp0fsp.cc
View file @
3d4bdf76
...
...
@@ -3714,7 +3714,7 @@ inline void fil_space_t::clear_freed_ranges(uint32_t threshold)
{
if
(
range
.
first
>=
threshold
)
continue
;
else
if
(
range
.
last
>
threshold
)
else
if
(
range
.
last
>
=
threshold
)
{
range_t
new_range
{
range
.
first
,
threshold
-
1
};
current_ranges
.
add_range
(
new_range
);
...
...
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