函数hash_get_nth_cell

 

/************************************************************//**
Gets the nth cell in a hash table.
@return    pointer to cell */
UNIV_INLINE
hash_cell_t*
hash_get_nth_cell(
/*==============*/
    hash_table_t*    table,    /*!< in: hash table */
    ulint        n)    /*!< in: cell index */
{
    ut_ad(table);
    ut_ad(table->magic_n == HASH_TABLE_MAGIC_N);
    ut_ad(n < table->n_cells);

    return(table->array + n);
}

 

posted @ 2015-11-04 17:50  taek  阅读(236)  评论(0)    收藏  举报