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
84be33ab
Commit
84be33ab
authored
Sep 25, 2017
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.0 into 10.1
parents
f91eb71e
19d21b93
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
28 additions
and
30 deletions
+28
-30
mysql-test/suite/innodb/r/innodb-table-online,crypt.rdiff
mysql-test/suite/innodb/r/innodb-table-online,crypt.rdiff
+1
-1
mysql-test/suite/innodb/r/innodb-table-online.result
mysql-test/suite/innodb/r/innodb-table-online.result
+7
-1
mysql-test/suite/innodb/t/innodb-table-online.test
mysql-test/suite/innodb/t/innodb-table-online.test
+7
-1
sql/CMakeLists.txt
sql/CMakeLists.txt
+2
-11
storage/innobase/row/row0import.cc
storage/innobase/row/row0import.cc
+4
-8
storage/mroonga/CMakeLists.txt
storage/mroonga/CMakeLists.txt
+3
-0
storage/xtradb/row/row0import.cc
storage/xtradb/row/row0import.cc
+4
-8
No files found.
mysql-test/suite/innodb/r/innodb-table-online,crypt.rdiff
View file @
84be33ab
...
...
@@ -5,7 +5,7 @@
@rowlog_encrypt_1>@rowlog_encrypt_0;
sort_balance @merge_encrypt_1>@merge_encrypt_0 @merge_decrypt_1>@merge_decrypt_0 @rowlog_encrypt_1>@rowlog_encrypt_0
-0 0 0 0
+0
1 1
1
+0
0 0
1
SET DEBUG_SYNC = 'now SIGNAL dml2_done';
# session con1
ERROR HY000: Creating index 'PRIMARY' required more than 'innodb_online_alter_log_max_size' bytes of modification log. Please try again.
...
...
mysql-test/suite/innodb/r/innodb-table-online.result
View file @
84be33ab
...
...
@@ -143,7 +143,8 @@ ROLLBACK;
# session con1
KILL QUERY @id;
ERROR 70100: Query execution was interrupted
SET DEBUG_SYNC = 'row_log_table_apply1_before SIGNAL rebuilt WAIT_FOR kill_done';
SET DEBUG_SYNC = 'row_log_table_apply1_before SIGNAL rebuilt WAIT_FOR dml_done';
SET DEBUG_SYNC = 'row_log_table_apply2_before SIGNAL applied WAIT_FOR kill_done';
ALTER TABLE t1 ROW_FORMAT=REDUNDANT;
# session default
SET DEBUG_SYNC = 'now WAIT_FOR rebuilt';
...
...
@@ -153,6 +154,10 @@ ddl_background_drop_indexes 0
ddl_background_drop_tables 0
ddl_online_create_index 1
ddl_pending_alter_table 1
BEGIN;
INSERT INTO t1 VALUES(7,4,2);
ROLLBACK;
SET DEBUG_SYNC = 'now SIGNAL dml_done WAIT_FOR applied';
KILL QUERY @id;
SET DEBUG_SYNC = 'now SIGNAL kill_done';
# session con1
...
...
@@ -195,6 +200,7 @@ t1 CREATE TABLE `t1` (
`c3` char(255) NOT NULL,
PRIMARY KEY (`c1`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT
ALTER TABLE t1 ROW_FORMAT=REDUNDANT;
SET DEBUG_SYNC = 'row_log_table_apply1_before SIGNAL rebuilt2 WAIT_FOR dml2_done';
SET lock_wait_timeout = 10;
ALTER TABLE t1 ROW_FORMAT=COMPACT, ALGORITHM = INPLACE;
...
...
mysql-test/suite/innodb/t/innodb-table-online.test
View file @
84be33ab
...
...
@@ -158,7 +158,8 @@ let $ID= `SELECT @id := CONNECTION_ID()`;
--
error
ER_QUERY_INTERRUPTED
KILL
QUERY
@
id
;
SET
DEBUG_SYNC
=
'row_log_table_apply1_before SIGNAL rebuilt WAIT_FOR kill_done'
;
SET
DEBUG_SYNC
=
'row_log_table_apply1_before SIGNAL rebuilt WAIT_FOR dml_done'
;
SET
DEBUG_SYNC
=
'row_log_table_apply2_before SIGNAL applied WAIT_FOR kill_done'
;
--
send
ALTER
TABLE
t1
ROW_FORMAT
=
REDUNDANT
;
...
...
@@ -166,6 +167,10 @@ ALTER TABLE t1 ROW_FORMAT=REDUNDANT;
connection
default
;
SET
DEBUG_SYNC
=
'now WAIT_FOR rebuilt'
;
eval
$innodb_metrics_select
;
BEGIN
;
INSERT
INTO
t1
VALUES
(
7
,
4
,
2
);
ROLLBACK
;
SET
DEBUG_SYNC
=
'now SIGNAL dml_done WAIT_FOR applied'
;
let
$ignore
=
`SELECT @id := $ID`
;
KILL
QUERY
@
id
;
SET
DEBUG_SYNC
=
'now SIGNAL kill_done'
;
...
...
@@ -201,6 +206,7 @@ WHERE variable_name = 'innodb_encryption_n_rowlog_blocks_encrypted');
--
echo
# session con1
connection
con1
;
SHOW
CREATE
TABLE
t1
;
ALTER
TABLE
t1
ROW_FORMAT
=
REDUNDANT
;
# Exceed the configured innodb_online_alter_log_max_size.
# The actual limit is a multiple of innodb_sort_buf_size,
...
...
sql/CMakeLists.txt
View file @
84be33ab
...
...
@@ -350,18 +350,9 @@ ADD_CUSTOM_TARGET(
SET_TARGET_PROPERTIES
(
GenServerSource PROPERTIES EXCLUDE_FROM_ALL TRUE
)
IF
(
WIN32 OR HAVE_DLOPEN AND NOT DISABLE_SHARED
)
ADD_LIBRARY
(
udf_example MODULE udf_example.c
)
ADD_LIBRARY
(
udf_example MODULE udf_example.c
udf_example.def
)
SET_TARGET_PROPERTIES
(
udf_example PROPERTIES PREFIX
""
)
# udf_example depends on strings
IF
(
WIN32
)
IF
(
MSVC
)
SET_TARGET_PROPERTIES
(
udf_example PROPERTIES LINK_FLAGS
"/DEF:
${
CMAKE_CURRENT_SOURCE_DIR
}
/udf_example.def"
)
ENDIF
()
TARGET_LINK_LIBRARIES
(
udf_example strings
)
ELSE
()
# udf_example is using safemutex exported by mysqld
TARGET_LINK_LIBRARIES
(
udf_example mysqld
)
ENDIF
()
ENDIF
()
FOREACH
(
tool glibtoolize libtoolize aclocal autoconf autoheader automake gtar
...
...
storage/innobase/row/row0import.cc
View file @
84be33ab
...
...
@@ -1792,16 +1792,12 @@ PageConverter::update_records(
m_rec_iter
.
open
(
block
);
while
(
!
m_rec_iter
.
end
())
{
rec_t
*
rec
=
m_rec_iter
.
current
();
/* FIXME: Move out of the loop */
if
(
rec_get_status
(
rec
)
==
REC_STATUS_NODE_PTR
)
{
break
;
if
(
!
page_is_leaf
(
block
->
frame
))
{
return
DB_SUCCESS
;
}
while
(
!
m_rec_iter
.
end
())
{
rec_t
*
rec
=
m_rec_iter
.
current
();
ibool
deleted
=
rec_get_deleted_flag
(
rec
,
comp
);
/* For the clustered index we have to adjust the BLOB
...
...
storage/mroonga/CMakeLists.txt
View file @
84be33ab
...
...
@@ -293,6 +293,9 @@ link_directories(
if
(
MRN_BUNDLED
)
target_link_libraries
(
mroonga
${
MRN_LIBRARIES
}
)
if
(
NOT TARGET mroonga
)
return
()
endif
()
else
()
add_library
(
mroonga MODULE
${
MRN_ALL_SOURCES
}
)
...
...
storage/xtradb/row/row0import.cc
View file @
84be33ab
...
...
@@ -1793,16 +1793,12 @@ PageConverter::update_records(
m_rec_iter
.
open
(
block
);
while
(
!
m_rec_iter
.
end
())
{
rec_t
*
rec
=
m_rec_iter
.
current
();
/* FIXME: Move out of the loop */
if
(
rec_get_status
(
rec
)
==
REC_STATUS_NODE_PTR
)
{
break
;
if
(
!
page_is_leaf
(
block
->
frame
))
{
return
DB_SUCCESS
;
}
while
(
!
m_rec_iter
.
end
())
{
rec_t
*
rec
=
m_rec_iter
.
current
();
ibool
deleted
=
rec_get_deleted_flag
(
rec
,
comp
);
/* For the clustered index we have to adjust the BLOB
...
...
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