MCPcopy Create free account
hub / github.com/Tencent/phxsql / fetch_queue_for

Function fetch_queue_for

phx_percona/percona/sql/binlog.h:198–201  ·  view source on GitHub ↗

Fetch the entire queue and empty it. @return Pointer to the first session of the queue. */

Source from the content-addressed store, hash-verified

196 @return Pointer to the first session of the queue.
197 */
198 THD *fetch_queue_for(StageID stage) {
199 DBUG_PRINT("debug", ("Fetching queue for stage %d", stage));
200 return m_queue[stage].fetch_and_empty();
201 }
202
203 void signal_done(THD *queue) {
204 mysql_mutex_lock(&m_lock_done);

Callers

nothing calls this directly

Calls 1

fetch_and_emptyMethod · 0.80

Tested by

no test coverage detected