Commit 1c74a628 authored by marko's avatar marko

rec_get_converted_size_new(): The total size of the infimum and supremum

records in ROW_FORMAT=COMPACT is REC_N_NEW_EXTRA_BYTES + 8.  The
REC_N_NEW_EXTRA_BYTES was accidentally omitted in r1546.  This function
should never be called on those records, though.
parent 00255d96
......@@ -459,10 +459,10 @@ rec_get_converted_size_new(
break;
case REC_STATUS_INFIMUM:
case REC_STATUS_SUPREMUM:
/* infimum or supremum record, 8 bytes */
return(8); /* no extra data needed */
/* infimum or supremum record, 8 data bytes */
return(REC_N_NEW_EXTRA_BYTES + 8);
default:
ut_a(0);
ut_error;
return(ULINT_UNDEFINED);
}
......
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