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

Function bkah_range_seq_next

sql/sql_join_cache.cc:4631–4649  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4629*/
4630
4631static
4632bool bkah_range_seq_next(range_seq_t rseq, KEY_MULTI_RANGE *range)
4633{
4634 DBUG_ENTER("bkah_range_seq_next");
4635 JOIN_CACHE_BKAH *cache= (JOIN_CACHE_BKAH *) rseq;
4636 TABLE_REF *ref= &cache->join_tab->ref;
4637 key_range *start_key= &range->start_key;
4638 if ((start_key->length= cache->get_next_key((uchar **) &start_key->key)))
4639 {
4640 start_key->keypart_map= (1 << ref->key_parts) - 1;
4641 start_key->flag= HA_READ_KEY_EXACT;
4642 range->end_key= *start_key;
4643 range->end_key.flag= HA_READ_AFTER_KEY;
4644 range->ptr= (char *) cache->get_curr_key_chain();
4645 range->range_flag= EQ_RANGE;
4646 DBUG_RETURN(0);
4647 }
4648 DBUG_RETURN(1);
4649}
4650
4651
4652/*

Callers

nothing calls this directly

Calls 2

get_curr_key_chainMethod · 0.80
get_next_keyMethod · 0.45

Tested by

no test coverage detected