408
408
val = mach_read_from_4(data);
410
static const ulint UNSIGNED_MASK= 0x80000000;
412
410
if (!(prtype & DATA_UNSIGNED)) {
413
val &= ~UNSIGNED_MASK;
414
412
fprintf(stderr, "%ld", (long) val);
416
414
fprintf(stderr, "%lu", (ulong) val);
421
419
id = mach_read_from_6(data);
422
fprintf(stderr, "%llu", (ullint) id);
420
fprintf(stderr, "{%lu %lu}",
421
ut_dulint_get_high(id),
422
ut_dulint_get_low(id));
426
426
id = mach_read_from_7(data);
427
fprintf(stderr, "%llu", (ullint) id);
427
fprintf(stderr, "{%lu %lu}",
428
ut_dulint_get_high(id),
429
ut_dulint_get_low(id));
430
432
id = mach_read_from_8(data);
431
fprintf(stderr, "%llu", (ullint) id);
433
fprintf(stderr, "{%lu %lu}",
434
ut_dulint_get_high(id),
435
ut_dulint_get_low(id));
440
444
case DATA_TRX_ID:
441
445
id = mach_read_from_6(data);
443
fprintf(stderr, "trx_id " TRX_ID_FMT, id);
447
fprintf(stderr, "trx_id " TRX_ID_FMT,
448
TRX_ID_PREP_PRINTF(id));
446
451
case DATA_ROLL_PTR:
447
452
id = mach_read_from_7(data);
449
fprintf(stderr, "roll_ptr " TRX_ID_FMT, id);
454
fprintf(stderr, "roll_ptr {%lu %lu}",
455
ut_dulint_get_high(id), ut_dulint_get_low(id));
452
458
case DATA_ROW_ID:
453
459
id = mach_read_from_6(data);
455
fprintf(stderr, "row_id " TRX_ID_FMT, id);
461
fprintf(stderr, "row_id {%lu %lu}",
462
ut_dulint_get_high(id), ut_dulint_get_low(id));
459
id = mach_ull_read_compressed(data);
466
id = mach_dulint_read_compressed(data);
461
fprintf(stderr, "mix_id " TRX_ID_FMT, id);
468
fprintf(stderr, "mix_id {%lu %lu}",
469
ut_dulint_get_high(id), ut_dulint_get_low(id));
661
/* In DYNAMIC and COMPRESSED format, store
662
locally any non-BLOB columns whose maximum
663
length does not exceed 256 bytes. This is
664
because there is no room for the "external
665
storage" flag when the maximum length is 255
666
bytes or less. This restriction trivially
667
holds in REDUNDANT and COMPACT format, because
668
there we always store locally columns whose
669
length is up to local_len == 788 bytes.
670
@see rec_init_offsets_comp_ordinary */
671
if (ifield->col->mtype != DATA_BLOB
672
&& ifield->col->len < 256) {
676
/* In DYNAMIC and COMPRESSED format, store
677
locally any non-BLOB columns whose maximum
678
length does not exceed 256 bytes. This is
679
because there is no room for the "external
680
storage" flag when the maximum length is 255
681
bytes or less. This restriction trivially
682
holds in REDUNDANT and COMPACT format, because
683
there we always store locally columns whose
684
length is up to local_len == 788 bytes.
685
@see rec_init_offsets_comp_ordinary */
686
if (ifield->col->mtype != DATA_BLOB
687
&& ifield->col->len < 256) {
691
/* In DYNAMIC and COMPRESSED format, store
692
locally any non-BLOB columns whose maximum
693
length does not exceed 256 bytes. This is
694
because there is no room for the "external
695
storage" flag when the maximum length is 255
696
bytes or less. This restriction trivially
697
holds in REDUNDANT and COMPACT format, because
698
there we always store locally columns whose
699
length is up to local_len == 788 bytes.
700
@see rec_init_offsets_comp_ordinary */
701
if (ifield->col->mtype != DATA_BLOB
702
&& ifield->col->len < 256) {
707
670
longest = savings;