Skip to content

Commit

Permalink
after merge fixes: InnoDB and XtraDB
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvova committed Jun 16, 2015
1 parent ede0880 commit 5355972
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 2 additions & 0 deletions storage/innobase/page/page0zip.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ using namespace std;
#include "btr0cur.h"
#include "page0types.h"
#include "log0recv.h"
#else
#define page_warn_strict_checksum(A,B,C,D)
#endif /* !UNIV_INNOCHECKSUM */
#include "zlib.h"
#ifndef UNIV_HOTBACKUP
Expand Down
14 changes: 8 additions & 6 deletions storage/xtradb/row/row0merge.cc
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,8 @@ row_merge_buf_redundant_convert(
dfield_t* field,
ulint len,
ulint zip_size,
mem_heap_t* heap)
mem_heap_t* heap,
trx_t* trx)
{
ut_ad(DATA_MBMINLEN(field->type.mbminmaxlen) == 1);
ut_ad(DATA_MBMAXLEN(field->type.mbminmaxlen) > 1);
Expand All @@ -271,7 +272,7 @@ row_merge_buf_redundant_convert(
field_ref_zero, BTR_EXTERN_FIELD_REF_SIZE));

byte* data = btr_copy_externally_stored_field(
&ext_len, field_data, zip_size, field_len, heap);
&ext_len, field_data, zip_size, field_len, heap, trx);

ut_ad(ext_len < len);

Expand Down Expand Up @@ -314,7 +315,8 @@ row_merge_buf_add(
const row_ext_t* ext,
doc_id_t* doc_id,
mem_heap_t* conv_heap,
bool* exceed_page)
bool* exceed_page,
trx_t* trx)
{
ulint i;
const dict_index_t* index;
Expand Down Expand Up @@ -473,7 +475,7 @@ row_merge_buf_add(
row_merge_buf_redundant_convert(
row_field, field, col->len,
dict_table_zip_size(old_table),
conv_heap);
conv_heap, trx);
} else {
/* Field length mismatch should not
happen when rebuilding redundant row
Expand Down Expand Up @@ -1692,7 +1694,7 @@ row_merge_read_clustered_index(
(row && (rows_added = row_merge_buf_add(
buf, fts_index, old_table,
psort_info, row, ext, &doc_id,
conv_heap, &exceed_page)))) {
conv_heap, &exceed_page, trx)))) {

/* If we are creating FTS index,
a single row can generate more
Expand Down Expand Up @@ -1805,7 +1807,7 @@ row_merge_read_clustered_index(
buf, fts_index, old_table,
psort_info, row, ext,
&doc_id, conv_heap,
&exceed_page)))) {
&exceed_page, trx)))) {
/* An empty buffer should have enough
room for at least one record. */
ut_error;
Expand Down

0 comments on commit 5355972

Please sign in to comment.