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

Method append

sql/sql_class.cc:8801–8816  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8799}
8800
8801C_MODE_END
8802
8803
8804bool Discrete_intervals_list::append(ulonglong start, ulonglong val,
8805 ulonglong incr)
8806{
8807 DBUG_ENTER("Discrete_intervals_list::append");
8808 /* first, see if this can be merged with previous */
8809 if ((head == NULL) || tail->merge_if_contiguous(start, val, incr))
8810 {
8811 /* it cannot, so need to add a new interval */
8812 Discrete_interval *new_interval= new Discrete_interval(start, val, incr);
8813 DBUG_RETURN(append(new_interval));
8814 }
8815 DBUG_RETURN(0);
8816}
8817
8818bool Discrete_intervals_list::append(Discrete_interval *new_interval)
8819{

Callers 3

decide_logging_formatMethod · 0.45
append_toMethod · 0.45

Calls 2

appendFunction · 0.85
merge_if_contiguousMethod · 0.80

Tested by

no test coverage detected