MCPcopy Create free account
hub / github.com/MariaDB/server / set_interruption_temp_buffer

Method set_interruption_temp_buffer

sql/multi_range_read.cc:703–730  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

701*/
702
703bool Mrr_ordered_index_reader::set_interruption_temp_buffer(uint rowid_length,
704 uint key_len,
705 uint saved_pk_len,
706 uchar **space_start,
707 uchar *space_end)
708{
709 if (space_end - *space_start <= (ptrdiff_t)(rowid_length + key_len + saved_pk_len))
710 return TRUE;
711 support_scan_interruptions= TRUE;
712
713 saved_rowid= *space_start;
714 *space_start += rowid_length;
715
716 if (saved_pk_len)
717 {
718 saved_primary_key= *space_start;
719 *space_start += saved_pk_len;
720 }
721 else
722 saved_primary_key= NULL;
723
724 saved_key_tuple= *space_start;
725 *space_start += key_len;
726
727 have_saved_rowid= FALSE;
728 read_was_interrupted= FALSE;
729 return FALSE;
730}
731
732void Mrr_ordered_index_reader::set_no_interruption_temp_buffer()
733{

Callers 1

dsmrr_initMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected