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
171fbbb9
Commit
171fbbb9
authored
Sep 14, 2018
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.3 into 10.4
parents
30d22569
aba5c72b
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
76 additions
and
14 deletions
+76
-14
mysql-test/suite/galera/disabled.def
mysql-test/suite/galera/disabled.def
+0
-1
mysql-test/suite/galera_3nodes/r/galera_certification_double_failure.result
...alera_3nodes/r/galera_certification_double_failure.result
+1
-1
mysql-test/suite/innodb/r/instant_alter.result
mysql-test/suite/innodb/r/instant_alter.result
+19
-1
mysql-test/suite/innodb/t/instant_alter.test
mysql-test/suite/innodb/t/instant_alter.test
+3
-0
scripts/galera_new_cluster.sh
scripts/galera_new_cluster.sh
+4
-0
sql/field.cc
sql/field.cc
+3
-1
sql/sql_base.cc
sql/sql_base.cc
+4
-0
storage/innobase/btr/btr0cur.cc
storage/innobase/btr/btr0cur.cc
+1
-0
storage/innobase/handler/handler0alter.cc
storage/innobase/handler/handler0alter.cc
+17
-10
storage/rocksdb/mysql-test/rocksdb_rpl/r/rpl_blob_key.result
storage/rocksdb/mysql-test/rocksdb_rpl/r/rpl_blob_key.result
+9
-0
storage/rocksdb/mysql-test/rocksdb_rpl/t/rpl_blob_key.test
storage/rocksdb/mysql-test/rocksdb_rpl/t/rpl_blob_key.test
+15
-0
No files found.
mysql-test/suite/galera/disabled.def
View file @
171fbbb9
...
...
@@ -34,7 +34,6 @@ galera.MW-44 : MDEV-15809 Test failure on galera.MW-44
galera.galera_pc_ignore_sb : MDEV-15811 Test failure on galera_pc_ignore_sb
galera_kill_applier : race condition at the start of the test
galera_ist_progress: MDEV-15236 galera_ist_progress fails when trying to read transfer status
galera_concurrent_ctas : MDEV-15845 Test failure on galera.galera_concurrent_ctas
pxc-421: Lock timeout exceeded
galera_sst_mysqldump_with_key : MDEV-16890 Galera test failure
galera_sst_xtrabackup-v2-options : Failed to read uuid:seqno and wsrep_gtid_domain_id from joiner script
...
...
mysql-test/suite/galera_3nodes/r/galera_certification_double_failure.result
View file @
171fbbb9
...
...
@@ -11,6 +11,6 @@ connection node_3;
INSERT INTO t2 VALUES (1);
connection node_1;
COMMIT;
ERROR 40001: Deadlock
found when trying to get lock; try restarting
transaction
ERROR 40001: Deadlock
: wsrep aborted
transaction
DROP TABLE t1;
DROP TABLE t2;
mysql-test/suite/innodb/r/instant_alter.result
View file @
171fbbb9
...
...
@@ -464,6 +464,12 @@ ALGORITHM=INSTANT;
SET foreign_key_checks=1;
ALTER TABLE t2 COMMENT 'domestic keys only', DROP FOREIGN KEY fk;
ALTER TABLE t1 DROP FOREIGN KEY t1_ibfk_1;
ALTER TABLE t1 ADD COLUMN big BLOB NOT NULL
DEFAULT REPEAT('a', @@GLOBAL.innodb_page_size * .75);
CHECK TABLE t2, t1;
Table Op Msg_type Msg_text
test.t2 check status OK
test.t1 check status OK
DROP TABLE t2, t1;
CREATE TABLE t1
(id INT PRIMARY KEY, c2 INT UNIQUE,
...
...
@@ -875,6 +881,12 @@ ALGORITHM=INSTANT;
SET foreign_key_checks=1;
ALTER TABLE t2 COMMENT 'domestic keys only', DROP FOREIGN KEY fk;
ALTER TABLE t1 DROP FOREIGN KEY t1_ibfk_1;
ALTER TABLE t1 ADD COLUMN big BLOB NOT NULL
DEFAULT REPEAT('a', @@GLOBAL.innodb_page_size * .75);
CHECK TABLE t2, t1;
Table Op Msg_type Msg_text
test.t2 check status OK
test.t1 check status OK
DROP TABLE t2, t1;
CREATE TABLE t1
(id INT PRIMARY KEY, c2 INT UNIQUE,
...
...
@@ -1286,11 +1298,17 @@ ALGORITHM=INSTANT;
SET foreign_key_checks=1;
ALTER TABLE t2 COMMENT 'domestic keys only', DROP FOREIGN KEY fk;
ALTER TABLE t1 DROP FOREIGN KEY t1_ibfk_1;
ALTER TABLE t1 ADD COLUMN big BLOB NOT NULL
DEFAULT REPEAT('a', @@GLOBAL.innodb_page_size * .75);
CHECK TABLE t2, t1;
Table Op Msg_type Msg_text
test.t2 check status OK
test.t1 check status OK
DROP TABLE t2, t1;
disconnect analyze;
SELECT variable_value-@old_instant instants
FROM information_schema.global_status
WHERE variable_name = 'innodb_instant_alter_column';
instants
4
5
4
8
SET GLOBAL innodb_purge_rseg_truncate_frequency= @saved_frequency;
mysql-test/suite/innodb/t/instant_alter.test
View file @
171fbbb9
...
...
@@ -338,6 +338,9 @@ ALGORITHM=INSTANT;
SET
foreign_key_checks
=
1
;
ALTER
TABLE
t2
COMMENT
'domestic keys only'
,
DROP
FOREIGN
KEY
fk
;
ALTER
TABLE
t1
DROP
FOREIGN
KEY
t1_ibfk_1
;
ALTER
TABLE
t1
ADD
COLUMN
big
BLOB
NOT
NULL
DEFAULT
REPEAT
(
'a'
,
@@
GLOBAL
.
innodb_page_size
*
.
75
);
CHECK
TABLE
t2
,
t1
;
DROP
TABLE
t2
,
t1
;
dec
$format
;
...
...
scripts/galera_new_cluster.sh
View file @
171fbbb9
...
...
@@ -27,4 +27,8 @@ COMPILATION_COMMENT="@COMPILATION_COMMENT@"
systemctl set-environment
_WSREP_NEW_CLUSTER
=
'--wsrep-new-cluster'
&&
\
systemctl start
${
1
:-
mariadb
}
extcode
=
$?
systemctl set-environment
_WSREP_NEW_CLUSTER
=
''
return
$extcode
sql/field.cc
View file @
171fbbb9
...
...
@@ -8380,7 +8380,9 @@ void Field_blob::sort_string(uchar *to,uint length)
Store length of blob last in blob to shorter blobs before longer blobs
*/
length
-=
packlength
;
store_bigendian
(
buf
.
length
(),
to
+
length
,
packlength
);
uint
key_length
=
MY_MIN
(
buf
.
length
(),
length
);
store_bigendian
(
key_length
,
to
+
length
,
packlength
);
}
#ifdef DBUG_ASSERT_EXISTS
...
...
sql/sql_base.cc
View file @
171fbbb9
...
...
@@ -3815,6 +3815,10 @@ lock_table_names(THD *thd, const DDL_options_st &options,
mdl_requests
.
push_front
(
&
global_request
);
if
(
create_table
)
#ifdef WITH_WSREP
if
(
thd
->
lex
->
sql_command
!=
SQLCOM_CREATE_TABLE
&&
thd
->
wsrep_exec_mode
!=
REPL_RECV
)
#endif
lock_wait_timeout
=
0
;
// Don't wait for timeout
}
...
...
storage/innobase/btr/btr0cur.cc
View file @
171fbbb9
...
...
@@ -4764,6 +4764,7 @@ btr_cur_pessimistic_update(
know the size of the freed record. */
btr_page_reorganize
(
page_cursor
,
index
,
mtr
);
rec
=
page_cursor
->
rec
;
rec_offs_make_valid
(
rec
,
index
,
true
,
*
offsets
);
}
else
if
(
!
dict_table_is_locking_disabled
(
index
->
table
))
{
lock_rec_restore_from_page_infimum
(
btr_cur_get_block
(
cursor
),
rec
,
block
);
...
...
storage/innobase/handler/handler0alter.cc
View file @
171fbbb9
...
...
@@ -4379,6 +4379,7 @@ innobase_add_instant_try(
que_thr_t
*
thr
=
pars_complete_graph_for_exec
(
NULL
,
trx
,
ctx
->
heap
,
NULL
);
dberr_t
err
;
if
(
rec_is_default_row
(
rec
,
index
))
{
ut_ad
(
page_rec_is_user_rec
(
rec
));
if
(
!
page_has_next
(
block
->
frame
)
...
...
@@ -4403,14 +4404,15 @@ innobase_add_instant_try(
ulint
*
offsets
=
NULL
;
mem_heap_t
*
offsets_heap
=
NULL
;
big_rec_t
*
big_rec
;
dberr_t
error
=
btr_cur_pessimistic_update
(
BTR_NO_LOCKING_FLAG
,
btr_pcur_get_btr_cur
(
&
pcur
),
err
=
btr_cur_pessimistic_update
(
BTR_NO_LOCKING_FLAG
|
BTR_KEEP_POS_FLAG
,
btr_pcur_get_btr_cur
(
&
pcur
),
&
offsets
,
&
offsets_heap
,
ctx
->
heap
,
&
big_rec
,
update
,
UPD_NODE_NO_ORD_CHANGE
,
thr
,
trx
->
id
,
&
mtr
);
if
(
big_rec
)
{
if
(
err
or
==
DB_SUCCESS
)
{
err
or
=
btr_store_big_rec_extern_fields
(
if
(
err
==
DB_SUCCESS
)
{
err
=
btr_store_big_rec_extern_fields
(
&
pcur
,
offsets
,
big_rec
,
&
mtr
,
BTR_STORE_UPDATE
);
}
...
...
@@ -4421,8 +4423,7 @@ innobase_add_instant_try(
mem_heap_free
(
offsets_heap
);
}
btr_pcur_close
(
&
pcur
);
mtr
.
commit
();
return
error
!=
DB_SUCCESS
;
goto
func_exit
;
}
else
if
(
page_rec_is_supremum
(
rec
))
{
empty_table:
/* The table is empty. */
...
...
@@ -4438,7 +4439,6 @@ innobase_add_instant_try(
mtr
.
commit
();
mtr
.
start
();
index
->
set_modified
(
mtr
);
dberr_t
err
;
if
(
page_t
*
root
=
btr_root_get
(
index
,
&
mtr
))
{
switch
(
fil_page_get_type
(
root
))
{
case
FIL_PAGE_TYPE_INSTANT
:
...
...
@@ -4451,8 +4451,7 @@ innobase_add_instant_try(
break
;
default:
DBUG_ASSERT
(
!
"wrong page type"
);
mtr
.
commit
();
return
true
;
goto
func_exit
;
}
mlog_write_ulint
(
root
+
FIL_PAGE_TYPE
,
...
...
@@ -4469,8 +4468,16 @@ innobase_add_instant_try(
err
=
DB_CORRUPTION
;
}
func_exit:
mtr
.
commit
();
return
err
!=
DB_SUCCESS
;
if
(
err
!=
DB_SUCCESS
)
{
my_error_innodb
(
err
,
table
->
s
->
table_name
.
str
,
user_table
->
flags
);
return
true
;
}
return
false
;
}
/** Update INNODB SYS_COLUMNS on new virtual column's position
...
...
storage/rocksdb/mysql-test/rocksdb_rpl/r/rpl_blob_key.result
0 → 100644
View file @
171fbbb9
include/master-slave.inc
[connection master]
CREATE TABLE t1 (b BLOB, i INT, KEY(b(8))) ENGINE=RocksDB;
INSERT INTO t1 VALUES (REPEAT('a',9),1);
UPDATE t1 SET i = 2;
connection slave;
connection master;
DROP TABLE t1;
include/rpl_end.inc
storage/rocksdb/mysql-test/rocksdb_rpl/t/rpl_blob_key.test
0 → 100644
View file @
171fbbb9
--
source
include
/
have_rocksdb
.
inc
--
source
include
/
have_binlog_format_row
.
inc
--
source
include
/
master
-
slave
.
inc
CREATE
TABLE
t1
(
b
BLOB
,
i
INT
,
KEY
(
b
(
8
)))
ENGINE
=
RocksDB
;
INSERT
INTO
t1
VALUES
(
REPEAT
(
'a'
,
9
),
1
);
UPDATE
t1
SET
i
=
2
;
--
sync_slave_with_master
# Cleanup
--
connection
master
DROP
TABLE
t1
;
--
source
include
/
rpl_end
.
inc
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