Commit 090cdcff authored by marko's avatar marko

branches/zip: row_merge_read_rec(): Fix a UNIV_DEBUG bug (Bug #45426)

parent 86bc6146
2009-06-17 The InnoDB Team
* row/row0merge.c:
Fix Bug#45426 UNIV_DEBUG build cause assertion error at CREATE INDEX
2009-06-17 The InnoDB Team 2009-06-17 The InnoDB Team
* mysql-test/innodb_bug45357.result, mysql-test/innodb_bug45357.test, * mysql-test/innodb_bug45357.result, mysql-test/innodb_bug45357.test,
......
...@@ -849,7 +849,14 @@ row_merge_read_rec( ...@@ -849,7 +849,14 @@ row_merge_read_rec(
avail_size = block[1] - b; avail_size = block[1] - b;
memcpy(*buf, b, avail_size); memcpy(*buf, b, avail_size);
*mrec = *buf + extra_size; *mrec = *buf + extra_size;
rec_offs_make_valid(*mrec, index, offsets); #ifdef UNIV_DEBUG
/* We cannot invoke rec_offs_make_valid() here, because there
are no REC_N_NEW_EXTRA_BYTES between extra_size and data_size.
Similarly, rec_offs_validate() would fail, because it invokes
rec_get_status(). */
offsets[2] = (ulint) *mrec;
offsets[3] = (ulint) index;
#endif /* UNIV_DEBUG */
if (!row_merge_read(fd, ++(*foffs), block)) { if (!row_merge_read(fd, ++(*foffs), block)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment