File tree Expand file tree Collapse file tree 7 files changed +28
-30
lines changed Expand file tree Collapse file tree 7 files changed +28
-30
lines changed Original file line number Diff line number Diff line change 5
5
@rowlog_encrypt_1>@rowlog_encrypt_0;
6
6
sort_balance @merge_encrypt_1>@merge_encrypt_0 @merge_decrypt_1>@merge_decrypt_0 @rowlog_encrypt_1>@rowlog_encrypt_0
7
7
-0 0 0 0
8
- +0 1 1 1
8
+ +0 0 0 1
9
9
SET DEBUG_SYNC = 'now SIGNAL dml2_done';
10
10
# session con1
11
11
ERROR HY000: Creating index 'PRIMARY' required more than 'innodb_online_alter_log_max_size' bytes of modification log. Please try again.
Original file line number Diff line number Diff line change @@ -143,7 +143,8 @@ ROLLBACK;
143
143
# session con1
144
144
KILL QUERY @id;
145
145
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';
147
148
ALTER TABLE t1 ROW_FORMAT=REDUNDANT;
148
149
# session default
149
150
SET DEBUG_SYNC = 'now WAIT_FOR rebuilt';
@@ -153,6 +154,10 @@ ddl_background_drop_indexes 0
153
154
ddl_background_drop_tables 0
154
155
ddl_online_create_index 1
155
156
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';
156
161
KILL QUERY @id;
157
162
SET DEBUG_SYNC = 'now SIGNAL kill_done';
158
163
# session con1
@@ -195,6 +200,7 @@ t1 CREATE TABLE `t1` (
195
200
`c3` char(255) NOT NULL,
196
201
PRIMARY KEY (`c1`)
197
202
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT
203
+ ALTER TABLE t1 ROW_FORMAT=REDUNDANT;
198
204
SET DEBUG_SYNC = 'row_log_table_apply1_before SIGNAL rebuilt2 WAIT_FOR dml2_done';
199
205
SET lock_wait_timeout = 10;
200
206
ALTER TABLE t1 ROW_FORMAT=COMPACT, ALGORITHM = INPLACE;
Original file line number Diff line number Diff line change @@ -158,14 +158,19 @@ let $ID= `SELECT @id := CONNECTION_ID()`;
158
158
--error ER_QUERY_INTERRUPTED
159
159
KILL QUERY @id;
160
160
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';
162
163
--send
163
164
ALTER TABLE t1 ROW_FORMAT=REDUNDANT;
164
165
165
166
--echo # session default
166
167
connection default;
167
168
SET DEBUG_SYNC = 'now WAIT_FOR rebuilt';
168
169
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';
169
174
let $ignore= `SELECT @id := $ID`;
170
175
KILL QUERY @id;
171
176
SET DEBUG_SYNC = 'now SIGNAL kill_done';
@@ -201,6 +206,7 @@ WHERE variable_name = 'innodb_encryption_n_rowlog_blocks_encrypted');
201
206
--echo # session con1
202
207
connection con1;
203
208
SHOW CREATE TABLE t1;
209
+ ALTER TABLE t1 ROW_FORMAT=REDUNDANT;
204
210
205
211
# Exceed the configured innodb_online_alter_log_max_size.
206
212
# The actual limit is a multiple of innodb_sort_buf_size,
Original file line number Diff line number Diff line change @@ -350,18 +350,9 @@ ADD_CUSTOM_TARGET(
350
350
SET_TARGET_PROPERTIES (GenServerSource PROPERTIES EXCLUDE_FROM_ALL TRUE )
351
351
352
352
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 )
354
354
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 )
365
356
ENDIF ()
366
357
367
358
FOREACH (tool glibtoolize libtoolize aclocal autoconf autoheader automake gtar
Original file line number Diff line number Diff line change @@ -1792,16 +1792,12 @@ PageConverter::update_records(
1792
1792
1793
1793
m_rec_iter.open (block);
1794
1794
1795
- while (!m_rec_iter.end ()) {
1795
+ if (!page_is_leaf (block->frame )) {
1796
+ return DB_SUCCESS;
1797
+ }
1796
1798
1799
+ while (!m_rec_iter.end ()) {
1797
1800
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
-
1805
1801
ibool deleted = rec_get_deleted_flag (rec, comp);
1806
1802
1807
1803
/* For the clustered index we have to adjust the BLOB
Original file line number Diff line number Diff line change @@ -293,6 +293,9 @@ link_directories(
293
293
294
294
if (MRN_BUNDLED )
295
295
target_link_libraries (mroonga ${MRN_LIBRARIES} )
296
+ if (NOT TARGET mroonga )
297
+ return ()
298
+ endif ()
296
299
else ()
297
300
add_library (mroonga MODULE ${MRN_ALL_SOURCES} )
298
301
Original file line number Diff line number Diff line change @@ -1793,16 +1793,12 @@ PageConverter::update_records(
1793
1793
1794
1794
m_rec_iter.open (block);
1795
1795
1796
- while (!m_rec_iter.end ()) {
1796
+ if (!page_is_leaf (block->frame )) {
1797
+ return DB_SUCCESS;
1798
+ }
1797
1799
1800
+ while (!m_rec_iter.end ()) {
1798
1801
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
-
1806
1802
ibool deleted = rec_get_deleted_flag (rec, comp);
1807
1803
1808
1804
/* For the clustered index we have to adjust the BLOB
You can’t perform that action at this time.
0 commit comments