1
0
Fork 0
arangodb/arangod/PriorityQueue
Guido Reina 105662d5ba [Small improvements] In the function TRI_InitPQueue(), instead of initializing pq->_base._items with '\0's by using memset(), TRI_Allocate() is called with 'set' set to true (as it is done in the function CheckPQSize()).
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.
2013-05-05 16:33:09 +02:00
..
pqueueindex.c In the function PQueueIndex_new(), if TRI_Allocate() failed to allocate memory for the associative array idx->_aa, idx was freed before idx->_pq. 2013-05-05 16:15:23 +02:00
pqueueindex.h cleanup of indexes, fix for compaction (hash, cap, geo, skiplist, pq, bit-array) 2013-03-15 15:45:39 +01:00
priorityqueue.c [Small improvements] In the function TRI_InitPQueue(), instead of initializing pq->_base._items with '\0's by using memset(), TRI_Allocate() is called with 'set' set to true (as it is done in the function CheckPQSize()). 2013-05-05 16:33:09 +02:00
priorityqueue.h Typos. 2013-05-05 16:12:17 +02:00