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
02da00a9
Commit
02da00a9
authored
Mar 04, 2022
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.2 into 10.3
parents
3c06a0b7
a92f07f4
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
30 additions
and
13 deletions
+30
-13
mysql-test/suite/federated/rpl.test
mysql-test/suite/federated/rpl.test
+1
-0
mysql-test/suite/innodb/r/page_reorganize.result
mysql-test/suite/innodb/r/page_reorganize.result
+7
-0
mysql-test/suite/innodb/t/page_reorganize.test
mysql-test/suite/innodb/t/page_reorganize.test
+8
-0
scripts/mysql_install_db.sh
scripts/mysql_install_db.sh
+5
-4
scripts/mysqld_safe.sh
scripts/mysqld_safe.sh
+1
-0
sql/item_func.cc
sql/item_func.cc
+6
-8
storage/innobase/btr/btr0cur.cc
storage/innobase/btr/btr0cur.cc
+2
-1
No files found.
mysql-test/suite/federated/rpl.test
View file @
02da00a9
source
have_federatedx
.
inc
;
source
include
/
have_binlog_format_row
.
inc
;
source
include
/
master
-
slave
.
inc
;
...
...
mysql-test/suite/innodb/r/page_reorganize.result
View file @
02da00a9
...
...
@@ -25,3 +25,10 @@ f1
disconnect con1;
connection default;
drop table t1;
#
# MDEV-27993 Assertion failed in btr_page_reorganize_low()
#
CREATE TABLE t1(a INT PRIMARY KEY, b INT UNIQUE) ENGINE=InnoDB;
SET DEBUG_DBUG = '+d,do_page_reorganize';
INSERT INTO t1 VALUES(0,0);
DROP TABLE t1;
mysql-test/suite/innodb/t/page_reorganize.test
View file @
02da00a9
...
...
@@ -53,4 +53,12 @@ connection default;
drop
table
t1
;
--
echo
#
--
echo
# MDEV-27993 Assertion failed in btr_page_reorganize_low()
--
echo
#
CREATE
TABLE
t1
(
a
INT
PRIMARY
KEY
,
b
INT
UNIQUE
)
ENGINE
=
InnoDB
;
SET
DEBUG_DBUG
=
'+d,do_page_reorganize'
;
INSERT
INTO
t1
VALUES
(
0
,
0
);
DROP
TABLE
t1
;
--
source
include
/
wait_until_count_sessions
.
inc
scripts/mysql_install_db.sh
View file @
02da00a9
...
...
@@ -483,10 +483,11 @@ then
args
=
"
$args
--user=
$user
"
fi
if
test
-n
"
$group
"
then
args
=
"
$args
--group=
$group
"
fi
#To be enabled if/when we enable --group as an option to mysqld
#if test -n "$group"
#then
# args="$args --group=$group"
#fi
# When doing a "cross bootstrap" install, no reference to the current
# host should be added to the system tables. So we filter out any
...
...
scripts/mysqld_safe.sh
View file @
02da00a9
...
...
@@ -694,6 +694,7 @@ then
if
test
"
$user
"
!=
"root"
-o
$SET_USER
=
1
then
USER_OPTION
=
"--user=
$user
"
# To be used if/when we enable --system-group as an option to mysqld
GROUP_OPTION
=
"--group=
$group
"
fi
if
test
-n
"
$open_files
"
...
...
sql/item_func.cc
View file @
02da00a9
/* Copyright (c) 2000, 2015, 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
...
...
@@ -3290,6 +3290,7 @@ udf_handler::fix_fields(THD *thd, Item_func_or_sum *func,
thd
->
alloc
(
f_args
.
arg_count
*
sizeof
(
Item_result
))))
{
err_exit:
free_udf
(
u_d
);
DBUG_RETURN
(
TRUE
);
}
...
...
@@ -3327,7 +3328,8 @@ udf_handler::fix_fields(THD *thd, Item_func_or_sum *func,
func
->
used_tables_and_const_cache_join
(
item
);
f_args
.
arg_type
[
i
]
=
item
->
result_type
();
}
if
(
!
(
buffers
=
new
(
thd
->
mem_root
)
String
[
arg_count
])
||
buffers
=
new
(
thd
->
mem_root
)
String
[
arg_count
];
if
(
!
buffers
||
!
multi_alloc_root
(
thd
->
mem_root
,
&
f_args
.
args
,
arg_count
*
sizeof
(
char
*
),
&
f_args
.
lengths
,
arg_count
*
sizeof
(
long
),
...
...
@@ -3336,10 +3338,7 @@ udf_handler::fix_fields(THD *thd, Item_func_or_sum *func,
&
f_args
.
attributes
,
arg_count
*
sizeof
(
char
*
),
&
f_args
.
attribute_lengths
,
arg_count
*
sizeof
(
long
),
NullS
))
{
free_udf
(
u_d
);
DBUG_RETURN
(
TRUE
);
}
goto
err_exit
;
}
if
(
func
->
fix_length_and_dec
())
DBUG_RETURN
(
TRUE
);
...
...
@@ -3407,8 +3406,7 @@ udf_handler::fix_fields(THD *thd, Item_func_or_sum *func,
{
my_error
(
ER_CANT_INITIALIZE_UDF
,
MYF
(
0
),
u_d
->
name
.
str
,
init_msg_buff
);
free_udf
(
u_d
);
DBUG_RETURN
(
TRUE
);
goto
err_exit
;
}
func
->
max_length
=
MY_MIN
(
initid
.
max_length
,
MAX_BLOB_WIDTH
);
func
->
maybe_null
=
initid
.
maybe_null
;
...
...
storage/innobase/btr/btr0cur.cc
View file @
02da00a9
...
...
@@ -3,7 +3,7 @@
Copyright (c) 1994, 2019, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2008, Google Inc.
Copyright (c) 2012, Facebook Inc.
Copyright (c) 2015, 202
1
, MariaDB Corporation.
Copyright (c) 2015, 202
2
, MariaDB Corporation.
Portions of this file contain modifications contributed and copyrighted by
Google, Inc. Those modifications are gratefully acknowledged and are described
...
...
@@ -3428,6 +3428,7 @@ btr_cur_optimistic_insert(
<<
ib
::
hex
(
thr
?
thr
->
graph
->
trx
->
id
:
0
)
<<
' '
<<
rec_printer
(
entry
).
str
());
DBUG_EXECUTE_IF
(
"do_page_reorganize"
,
if
(
n_recs
)
btr_page_reorganize
(
page_cursor
,
index
,
mtr
););
/* Now, try the insert */
...
...
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