Skip to content

Commit 4210e7b

Browse files
committed
Merge 10.2 into 10.3
2 parents 92996c9 + b86e18c commit 4210e7b

File tree

6 files changed

+17
-22
lines changed

6 files changed

+17
-22
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
if (!`SELECT @@aria_used_for_temp_tables`)
2+
{
3+
skip Need Aria to be used for temporary tables;
4+
}

mysql-test/main/information_schema.test

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
# on the presence of the log tables (which are CSV-based).
99
--source include/have_csv.inc
1010

11+
# Without aria_used_for_temp_tables some I_S tables will be MyISAM,
12+
# while the test expects them to be Aria
13+
-- source include/have_aria_used_for_temp_tables.inc
14+
1115
-- source include/have_innodb.inc
1216

1317
# Save the initial number of concurrent sessions

mysql-test/suite/sys_vars/t/aria_used_for_temp_tables_basic.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# bool readonly
22

3+
--source include/have_aria_used_for_temp_tables.inc
34
--source include/have_maria.inc
45
#
56
# show the global and session values;

mysql-test/suite/sys_vars/t/sysvars_aria.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
--source include/have_aria.inc
2+
--source include/have_aria_used_for_temp_tables.inc
23
--source include/word_size.inc
34

45
--vertical_results

mysql-test/suite/sys_vars/t/tmp_disk_table_size_func.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
###################### tmp_memory_table_size_func.test ########################
22

3+
--source include/have_aria_used_for_temp_tables.inc
4+
35
--source include/load_sysvars.inc
46
--source include/have_sequence.inc
57

storage/innobase/log/log0recv.cc

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,8 @@ static void recv_addr_trim(ulint space_id, unsigned pages, lsn_t lsn)
232232
hash_cell_t* const cell = hash_get_nth_cell(
233233
recv_sys->addr_hash, i);
234234
for (recv_addr_t* addr = static_cast<recv_addr_t*>(cell->node),
235-
*prev = NULL, *next;
236-
addr;
237-
prev = addr, addr = next) {
235+
*next;
236+
addr; addr = next) {
238237
next = static_cast<recv_addr_t*>(addr->addr_hash);
239238

240239
if (addr->space != space_id || addr->page_no < pages) {
@@ -256,22 +255,6 @@ static void recv_addr_trim(ulint space_id, unsigned pages, lsn_t lsn)
256255
}
257256
recv = n;
258257
}
259-
260-
if (UT_LIST_GET_LEN(addr->rec_list)) {
261-
DBUG_PRINT("ib_log",
262-
("preserving " ULINTPF
263-
" records for page %u:%u",
264-
UT_LIST_GET_LEN(addr->rec_list),
265-
addr->space, addr->page_no));
266-
} else {
267-
ut_ad(recv_sys->n_addrs);
268-
--recv_sys->n_addrs;
269-
if (addr == cell->node) {
270-
cell->node = next;
271-
} else {
272-
prev->addr_hash = next;
273-
}
274-
}
275258
}
276259
}
277260
if (fil_space_t* space = fil_space_get(space_id)) {
@@ -2119,8 +2102,7 @@ static ulint recv_read_in_area(const page_id_t page_id)
21192102
/** Apply the hash table of stored log records to persistent data pages.
21202103
@param[in] last_batch whether the change buffer merge will be
21212104
performed as part of the operation */
2122-
void
2123-
recv_apply_hashed_log_recs(bool last_batch)
2105+
void recv_apply_hashed_log_recs(bool last_batch)
21242106
{
21252107
ut_ad(srv_operation == SRV_OPERATION_NORMAL
21262108
|| srv_operation == SRV_OPERATION_RESTORE
@@ -2183,7 +2165,8 @@ recv_apply_hashed_log_recs(bool last_batch)
21832165
continue;
21842166
}
21852167

2186-
if (recv_addr->state == RECV_DISCARDED) {
2168+
if (recv_addr->state == RECV_DISCARDED
2169+
|| !UT_LIST_GET_LEN(recv_addr->rec_list)) {
21872170
ut_a(recv_sys->n_addrs);
21882171
recv_sys->n_addrs--;
21892172
continue;

0 commit comments

Comments
 (0)