Skip to content

Commit 5355972

Browse files
committed
after merge fixes: InnoDB and XtraDB
1 parent ede0880 commit 5355972

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

storage/innobase/page/page0zip.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ using namespace std;
4747
#include "btr0cur.h"
4848
#include "page0types.h"
4949
#include "log0recv.h"
50+
#else
51+
#define page_warn_strict_checksum(A,B,C,D)
5052
#endif /* !UNIV_INNOCHECKSUM */
5153
#include "zlib.h"
5254
#ifndef UNIV_HOTBACKUP

storage/xtradb/row/row0merge.cc

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ row_merge_buf_redundant_convert(
252252
dfield_t* field,
253253
ulint len,
254254
ulint zip_size,
255-
mem_heap_t* heap)
255+
mem_heap_t* heap,
256+
trx_t* trx)
256257
{
257258
ut_ad(DATA_MBMINLEN(field->type.mbminmaxlen) == 1);
258259
ut_ad(DATA_MBMAXLEN(field->type.mbminmaxlen) > 1);
@@ -271,7 +272,7 @@ row_merge_buf_redundant_convert(
271272
field_ref_zero, BTR_EXTERN_FIELD_REF_SIZE));
272273

273274
byte* data = btr_copy_externally_stored_field(
274-
&ext_len, field_data, zip_size, field_len, heap);
275+
&ext_len, field_data, zip_size, field_len, heap, trx);
275276

276277
ut_ad(ext_len < len);
277278

@@ -314,7 +315,8 @@ row_merge_buf_add(
314315
const row_ext_t* ext,
315316
doc_id_t* doc_id,
316317
mem_heap_t* conv_heap,
317-
bool* exceed_page)
318+
bool* exceed_page,
319+
trx_t* trx)
318320
{
319321
ulint i;
320322
const dict_index_t* index;
@@ -473,7 +475,7 @@ row_merge_buf_add(
473475
row_merge_buf_redundant_convert(
474476
row_field, field, col->len,
475477
dict_table_zip_size(old_table),
476-
conv_heap);
478+
conv_heap, trx);
477479
} else {
478480
/* Field length mismatch should not
479481
happen when rebuilding redundant row
@@ -1692,7 +1694,7 @@ row_merge_read_clustered_index(
16921694
(row && (rows_added = row_merge_buf_add(
16931695
buf, fts_index, old_table,
16941696
psort_info, row, ext, &doc_id,
1695-
conv_heap, &exceed_page)))) {
1697+
conv_heap, &exceed_page, trx)))) {
16961698

16971699
/* If we are creating FTS index,
16981700
a single row can generate more
@@ -1805,7 +1807,7 @@ row_merge_read_clustered_index(
18051807
buf, fts_index, old_table,
18061808
psort_info, row, ext,
18071809
&doc_id, conv_heap,
1808-
&exceed_page)))) {
1810+
&exceed_page, trx)))) {
18091811
/* An empty buffer should have enough
18101812
room for at least one record. */
18111813
ut_error;

0 commit comments

Comments
 (0)