MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / init_queue_ex

Function init_queue_ex

mysys/queues.c:94–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92*/
93
94int init_queue_ex(QUEUE *queue, uint max_elements, uint offset_to_key,
95 pbool max_at_top, int (*compare) (void *, uchar *, uchar *),
96 void *first_cmp_arg, uint auto_extent)
97{
98 int ret;
99 DBUG_ENTER("init_queue_ex");
100
101 if ((ret= init_queue(queue, max_elements, offset_to_key, max_at_top, compare,
102 first_cmp_arg)))
103 DBUG_RETURN(ret);
104
105 queue->auto_extent= auto_extent;
106 DBUG_RETURN(0);
107}
108
109/*
110 Reinitialize queue for other usage

Callers 1

init_thr_alarmFunction · 0.85

Calls 1

init_queueFunction · 0.85

Tested by

no test coverage detected