Commit d234ea1e authored by marko's avatar marko

branches/zip: page_zip_fields_encode(): Assign to trx_id_col after

encoding any pending data.
parent 86ec3c60
...@@ -382,8 +382,6 @@ page_zip_fields_encode( ...@@ -382,8 +382,6 @@ page_zip_fields_encode(
} else if (val) { } else if (val) {
/* fixed-length non-nullable field */ /* fixed-length non-nullable field */
if (i && UNIV_UNLIKELY(i == trx_id_pos)) { if (i && UNIV_UNLIKELY(i == trx_id_pos)) {
trx_id_col = col;
if (fixed_sum) { if (fixed_sum) {
/* Write out the length of any /* Write out the length of any
preceding non-nullable fields, preceding non-nullable fields,
...@@ -393,6 +391,7 @@ page_zip_fields_encode( ...@@ -393,6 +391,7 @@ page_zip_fields_encode(
col++; col++;
} }
trx_id_col = col;
fixed_sum = field->fixed_len; fixed_sum = field->fixed_len;
} else { } else {
/* add to the sum */ /* add to the sum */
......
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