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

Method scan_next

storage/perfschema/pfs_buffer_container.h:366–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364
365private:
366 value_type* scan_next(uint & index, uint * found_index)
367 {
368 assert(index <= m_max);
369
370 value_type *pfs_first= m_array.get_first();
371 value_type *pfs= pfs_first + index;
372 value_type *pfs_last= m_array.get_last();
373
374 while (pfs < pfs_last)
375 {
376 if (pfs->m_lock.is_populated())
377 {
378 uint found= pfs - pfs_first;
379 *found_index= found;
380 index= found + 1;
381 return pfs;
382 }
383 pfs++;
384 }
385
386 index= m_max;
387 return NULL;
388 }
389
390 ulong m_max;
391 array_type m_array;

Callers

nothing calls this directly

Calls 3

is_populatedMethod · 0.80
get_firstMethod · 0.45
get_lastMethod · 0.45

Tested by

no test coverage detected