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
101d10b8
Commit
101d10b8
authored
Sep 11, 2021
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.3 into 10.4
parents
098106b4
bcd25e10
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
7 deletions
+27
-7
mysql-test/suite/innodb/r/alter_partitioned.result
mysql-test/suite/innodb/r/alter_partitioned.result
+4
-0
mysql-test/suite/innodb/t/alter_partitioned.test
mysql-test/suite/innodb/t/alter_partitioned.test
+4
-0
mysql-test/suite/innodb/t/check_ibd_filesize.test
mysql-test/suite/innodb/t/check_ibd_filesize.test
+6
-0
storage/innobase/fil/fil0fil.cc
storage/innobase/fil/fil0fil.cc
+8
-3
storage/innobase/os/os0file.cc
storage/innobase/os/os0file.cc
+4
-3
win/packaging/mysql_server.wxs.in
win/packaging/mysql_server.wxs.in
+1
-1
No files found.
mysql-test/suite/innodb/r/alter_partitioned.result
View file @
101d10b8
...
...
@@ -11,10 +11,14 @@ SAVEPOINT sp;
INSERT INTO t1 (pk) VALUES (1);
ROLLBACK TO SAVEPOINT sp;
connection default;
SET @save_timeout=@@lock_wait_timeout;
SET @save_innodb_timeout=@@innodb_lock_wait_timeout;
SET lock_wait_timeout=0;
SET innodb_lock_wait_timeout=0;
ALTER TABLE t1 PARTITION BY HASH(pk);
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
SET lock_wait_timeout=@save_timeout;
SET innodb_lock_wait_timeout=@save_innodb_timeout;
SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
...
...
mysql-test/suite/innodb/t/alter_partitioned.test
View file @
101d10b8
...
...
@@ -18,10 +18,14 @@ INSERT INTO t1 (pk) VALUES (1);
ROLLBACK
TO
SAVEPOINT
sp
;
--
connection
default
SET
@
save_timeout
=@@
lock_wait_timeout
;
SET
@
save_innodb_timeout
=@@
innodb_lock_wait_timeout
;
SET
lock_wait_timeout
=
0
;
SET
innodb_lock_wait_timeout
=
0
;
--
error
ER_LOCK_WAIT_TIMEOUT
ALTER
TABLE
t1
PARTITION
BY
HASH
(
pk
);
SET
lock_wait_timeout
=@
save_timeout
;
SET
innodb_lock_wait_timeout
=@
save_innodb_timeout
;
SHOW
CREATE
TABLE
t1
;
--
connection
con1
...
...
mysql-test/suite/innodb/t/check_ibd_filesize.test
View file @
101d10b8
...
...
@@ -46,6 +46,12 @@ perl;
print
"# bytes: "
,
(
-
s
"
$ENV
{
MYSQLD_DATADIR
}
/test/t1.ibd"
),
"
\n
"
;
EOF
INSERT
INTO
t1
SELECT
seq
,
REPEAT
(
'a'
,
30000
)
FROM
seq_1_to_20
;
# Ensure that the file will be extended with the last 1024-byte page
# after the file was pre-extended in 4096-byte increments.
--
disable_query_log
FLUSH
TABLE
t1
FOR
EXPORT
;
UNLOCK
TABLES
;
--
enable_query_log
perl
;
print
"# bytes: "
,
(
-
s
"
$ENV
{
MYSQLD_DATADIR
}
/test/t1.ibd"
),
"
\n
"
;
EOF
...
...
storage/innobase/fil/fil0fil.cc
View file @
101d10b8
...
...
@@ -827,10 +827,15 @@ fil_space_extend_must_retry(
const
ulint
page_size
=
space
->
physical_size
();
/* fil_read_first_page() expects srv_page_size bytes.
fil_node_open_file() expects at least 4 * srv_page_size bytes.*/
/* fil_read_first_page() expects innodb_page_size bytes.
fil_node_open_file() expects at least 4 * innodb_page_size bytes.
os_file_set_size() expects multiples of 4096 bytes.
For ROW_FORMAT=COMPRESSED tables using 1024-byte or 2048-byte
pages, we will preallocate up to an integer multiple of 4096 bytes,
and let normal writes append 1024, 2048, or 3072 bytes to the file. */
os_offset_t
new_size
=
std
::
max
(
os_offset_t
(
size
-
file_start_page_no
)
*
page_size
,
(
os_offset_t
(
size
-
file_start_page_no
)
*
page_size
)
&
~
os_offset_t
(
4095
),
os_offset_t
(
FIL_IBD_FILE_INITIAL_SIZE
<<
srv_page_size_shift
));
*
success
=
os_file_set_size
(
node
->
name
,
node
->
handle
,
new_size
,
...
...
storage/innobase/os/os0file.cc
View file @
101d10b8
...
...
@@ -4989,6 +4989,8 @@ os_file_set_size(
os_offset_t
size
,
bool
is_sparse
)
{
ut_ad
(
!
(
size
&
4095
));
#ifdef _WIN32
/* On Windows, changing file size works well and as expected for both
sparse and normal files.
...
...
@@ -5030,7 +5032,7 @@ os_file_set_size(
if
(
current_size
>=
size
)
{
return
true
;
}
current_size
&=
~
os_offset_t
(
statbuf
.
st_blksize
-
1
)
;
current_size
&=
~
4095ULL
;
err
=
posix_fallocate
(
file
,
current_size
,
size
-
current_size
);
}
...
...
@@ -5070,8 +5072,7 @@ os_file_set_size(
if
(
fstat
(
file
,
&
statbuf
))
{
return
false
;
}
os_offset_t
current_size
=
statbuf
.
st_size
&
~
os_offset_t
(
statbuf
.
st_blksize
-
1
);
os_offset_t
current_size
=
statbuf
.
st_size
&
~
4095ULL
;
#endif
if
(
current_size
>=
size
)
{
return
true
;
...
...
win/packaging/mysql_server.wxs.in
View file @
101d10b8
...
...
@@ -18,7 +18,7 @@
SummaryCodepage='1252'
Platform='@Platform@'/>
<Media
Id='1' Cabinet='product.cab' EmbedCab='yes' CompressionLevel='high'
/>
<Media
Template EmbedCab="yes" MaximumUncompressedMediaSize="2" CompressionLevel="high"
/>
<!-- Upgrade -->
<Upgrade Id="@CPACK_WIX_UPGRADE_CODE@">
...
...
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