Skip to content

Commit

Permalink
MDEV-8020: innodb.innodb-mdev-7055 produces valgrind warnings in buil…
Browse files Browse the repository at this point in the history
…dbot

Fixed by reverting incorrect fix of MDEC-7055 (reopened) and removing the
test case (because it now crashes).
  • Loading branch information
Jan Lindström committed Apr 28, 2015
1 parent ac2b92c commit 4c174fc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 31 deletions.
1 change: 0 additions & 1 deletion mysql-test/suite/innodb/r/innodb-mdev-7055.result

This file was deleted.

23 changes: 0 additions & 23 deletions mysql-test/suite/innodb/t/innodb-mdev-7055.test

This file was deleted.

6 changes: 2 additions & 4 deletions storage/innobase/rem/rem0rec.c
Original file line number Diff line number Diff line change
Expand Up @@ -830,8 +830,7 @@ rec_get_converted_size_comp_prefix_low(
}

ut_ad(len <= col->len || col->mtype == DATA_BLOB
|| col->mtype == DATA_VARMYSQL
|| (col->len == 0 && col->mtype == DATA_VARCHAR));
|| (col->len == 0 && col->mtype == DATA_VARCHAR));

fixed_len = field->fixed_len;
if (temp && fixed_len
Expand Down Expand Up @@ -1258,8 +1257,7 @@ rec_convert_dtuple_to_rec_comp(
*lens-- = (byte) len;
} else {
ut_ad(len <= dtype_get_len(type)
|| dtype_get_mtype(type) == DATA_BLOB
|| dtype_get_mtype(type) == DATA_VARMYSQL);
|| dtype_get_mtype(type) == DATA_BLOB);
if (len < 128
|| (dtype_get_len(type) < 256
&& dtype_get_mtype(type) != DATA_BLOB)) {
Expand Down
4 changes: 1 addition & 3 deletions storage/xtradb/rem/rem0rec.c
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,6 @@ rec_get_converted_size_comp_prefix_low(
}

ut_ad(len <= col->len || col->mtype == DATA_BLOB
|| col->mtype == DATA_VARMYSQL
|| (col->len == 0 && col->mtype == DATA_VARCHAR));

fixed_len = field->fixed_len;
Expand Down Expand Up @@ -1258,8 +1257,7 @@ rec_convert_dtuple_to_rec_comp(
*lens-- = (byte) len;
} else {
ut_ad(len <= dtype_get_len(type)
|| dtype_get_mtype(type) == DATA_BLOB
|| dtype_get_mtype(type) == DATA_VARMYSQL);
|| dtype_get_mtype(type) == DATA_BLOB);
if (len < 128
|| (dtype_get_len(type) < 256
&& dtype_get_mtype(type) != DATA_BLOB)) {
Expand Down

0 comments on commit 4c174fc

Please sign in to comment.