Skip to content

Commit 84be33a

Browse files
committed
Merge 10.0 into 10.1
2 parents f91eb71 + 19d21b9 commit 84be33a

File tree

7 files changed

+28
-30
lines changed

7 files changed

+28
-30
lines changed

mysql-test/suite/innodb/r/innodb-table-online,crypt.rdiff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
@rowlog_encrypt_1>@rowlog_encrypt_0;
66
sort_balance @merge_encrypt_1>@merge_encrypt_0 @merge_decrypt_1>@merge_decrypt_0 @rowlog_encrypt_1>@rowlog_encrypt_0
77
-0 0 0 0
8-
+0 1 1 1
8+
+0 0 0 1
99
SET DEBUG_SYNC = 'now SIGNAL dml2_done';
1010
# session con1
1111
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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ ROLLBACK;
143143
# session con1
144144
KILL QUERY @id;
145145
ERROR 70100: Query execution was interrupted
146-
SET DEBUG_SYNC = 'row_log_table_apply1_before SIGNAL rebuilt WAIT_FOR kill_done';
146+
SET DEBUG_SYNC = 'row_log_table_apply1_before SIGNAL rebuilt WAIT_FOR dml_done';
147+
SET DEBUG_SYNC = 'row_log_table_apply2_before SIGNAL applied WAIT_FOR kill_done';
147148
ALTER TABLE t1 ROW_FORMAT=REDUNDANT;
148149
# session default
149150
SET DEBUG_SYNC = 'now WAIT_FOR rebuilt';
@@ -153,6 +154,10 @@ ddl_background_drop_indexes 0
153154
ddl_background_drop_tables 0
154155
ddl_online_create_index 1
155156
ddl_pending_alter_table 1
157+
BEGIN;
158+
INSERT INTO t1 VALUES(7,4,2);
159+
ROLLBACK;
160+
SET DEBUG_SYNC = 'now SIGNAL dml_done WAIT_FOR applied';
156161
KILL QUERY @id;
157162
SET DEBUG_SYNC = 'now SIGNAL kill_done';
158163
# session con1
@@ -195,6 +200,7 @@ t1 CREATE TABLE `t1` (
195200
`c3` char(255) NOT NULL,
196201
PRIMARY KEY (`c1`)
197202
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT
203+
ALTER TABLE t1 ROW_FORMAT=REDUNDANT;
198204
SET DEBUG_SYNC = 'row_log_table_apply1_before SIGNAL rebuilt2 WAIT_FOR dml2_done';
199205
SET lock_wait_timeout = 10;
200206
ALTER TABLE t1 ROW_FORMAT=COMPACT, ALGORITHM = INPLACE;

mysql-test/suite/innodb/t/innodb-table-online.test

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,14 +158,19 @@ let $ID= `SELECT @id := CONNECTION_ID()`;
158158
--error ER_QUERY_INTERRUPTED
159159
KILL QUERY @id;
160160

161-
SET DEBUG_SYNC = 'row_log_table_apply1_before SIGNAL rebuilt WAIT_FOR kill_done';
161+
SET DEBUG_SYNC = 'row_log_table_apply1_before SIGNAL rebuilt WAIT_FOR dml_done';
162+
SET DEBUG_SYNC = 'row_log_table_apply2_before SIGNAL applied WAIT_FOR kill_done';
162163
--send
163164
ALTER TABLE t1 ROW_FORMAT=REDUNDANT;
164165

165166
--echo # session default
166167
connection default;
167168
SET DEBUG_SYNC = 'now WAIT_FOR rebuilt';
168169
eval $innodb_metrics_select;
170+
BEGIN;
171+
INSERT INTO t1 VALUES(7,4,2);
172+
ROLLBACK;
173+
SET DEBUG_SYNC = 'now SIGNAL dml_done WAIT_FOR applied';
169174
let $ignore= `SELECT @id := $ID`;
170175
KILL QUERY @id;
171176
SET DEBUG_SYNC = 'now SIGNAL kill_done';
@@ -201,6 +206,7 @@ WHERE variable_name = 'innodb_encryption_n_rowlog_blocks_encrypted');
201206
--echo # session con1
202207
connection con1;
203208
SHOW CREATE TABLE t1;
209+
ALTER TABLE t1 ROW_FORMAT=REDUNDANT;
204210

205211
# Exceed the configured innodb_online_alter_log_max_size.
206212
# The actual limit is a multiple of innodb_sort_buf_size,

sql/CMakeLists.txt

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -350,18 +350,9 @@ ADD_CUSTOM_TARGET(
350350
SET_TARGET_PROPERTIES(GenServerSource PROPERTIES EXCLUDE_FROM_ALL TRUE)
351351

352352
IF(WIN32 OR HAVE_DLOPEN AND NOT DISABLE_SHARED)
353-
ADD_LIBRARY(udf_example MODULE udf_example.c)
353+
ADD_LIBRARY(udf_example MODULE udf_example.c udf_example.def)
354354
SET_TARGET_PROPERTIES(udf_example PROPERTIES PREFIX "")
355-
# udf_example depends on strings
356-
IF(WIN32)
357-
IF(MSVC)
358-
SET_TARGET_PROPERTIES(udf_example PROPERTIES LINK_FLAGS "/DEF:${CMAKE_CURRENT_SOURCE_DIR}/udf_example.def")
359-
ENDIF()
360-
TARGET_LINK_LIBRARIES(udf_example strings)
361-
ELSE()
362-
# udf_example is using safemutex exported by mysqld
363-
TARGET_LINK_LIBRARIES(udf_example mysqld)
364-
ENDIF()
355+
TARGET_LINK_LIBRARIES(udf_example strings)
365356
ENDIF()
366357

367358
FOREACH(tool glibtoolize libtoolize aclocal autoconf autoheader automake gtar

storage/innobase/row/row0import.cc

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1792,16 +1792,12 @@ PageConverter::update_records(
17921792

17931793
m_rec_iter.open(block);
17941794

1795-
while (!m_rec_iter.end()) {
1795+
if (!page_is_leaf(block->frame)) {
1796+
return DB_SUCCESS;
1797+
}
17961798

1799+
while (!m_rec_iter.end()) {
17971800
rec_t* rec = m_rec_iter.current();
1798-
1799-
/* FIXME: Move out of the loop */
1800-
1801-
if (rec_get_status(rec) == REC_STATUS_NODE_PTR) {
1802-
break;
1803-
}
1804-
18051801
ibool deleted = rec_get_deleted_flag(rec, comp);
18061802

18071803
/* For the clustered index we have to adjust the BLOB

storage/mroonga/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,9 @@ link_directories(
293293

294294
if(MRN_BUNDLED)
295295
target_link_libraries(mroonga ${MRN_LIBRARIES})
296+
if(NOT TARGET mroonga)
297+
return()
298+
endif()
296299
else()
297300
add_library(mroonga MODULE ${MRN_ALL_SOURCES})
298301

storage/xtradb/row/row0import.cc

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1793,16 +1793,12 @@ PageConverter::update_records(
17931793

17941794
m_rec_iter.open(block);
17951795

1796-
while (!m_rec_iter.end()) {
1796+
if (!page_is_leaf(block->frame)) {
1797+
return DB_SUCCESS;
1798+
}
17971799

1800+
while (!m_rec_iter.end()) {
17981801
rec_t* rec = m_rec_iter.current();
1799-
1800-
/* FIXME: Move out of the loop */
1801-
1802-
if (rec_get_status(rec) == REC_STATUS_NODE_PTR) {
1803-
break;
1804-
}
1805-
18061802
ibool deleted = rec_get_deleted_flag(rec, comp);
18071803

18081804
/* For the clustered index we have to adjust the BLOB

0 commit comments

Comments
 (0)