mirror of https://gitee.com/bigwinds/arangodb
In the function CheckPQSize(), the priority queue capacity will be increased only when the new item to be inserted doesn't fit (pq->_base._count + 1 > pq->_base._capacity). In the function CheckPQSize(), instead of allocating a new buffer and then copying the elements, TRI_Reallocate() is used and the new area is filled with '\0's. |
||
---|---|---|
.. | ||
pqueueindex.c | ||
pqueueindex.h | ||
priorityqueue.c | ||
priorityqueue.h |