Make binaryheap enlargeable.
authorMasahiko Sawada <[email protected]>
Wed, 3 Apr 2024 01:27:43 +0000 (10:27 +0900)
committerMasahiko Sawada <[email protected]>
Wed, 3 Apr 2024 01:27:43 +0000 (10:27 +0900)
commitbcb14f4abca0c309f908b3f0cd64378785c99795
tree2b756a9431bf00d9cb819c825609935e99fafbe1
parent2c91e13013414cf77bb8026a19a926e08f4e9e7a
Make binaryheap enlargeable.

The node array space of the binaryheap is doubled when there is no
available space.

Reviewed-by: Vignesh C, Peter Smith, Hayato Kuroda, Ajin Cherian,
Tomas Vondra, Shubham Khanna
Discussion: https://postgr.es/m/CAD21AoDffo37RC-eUuyHJKVEr017V2YYDLyn1xF_00ofptWbkg%40mail.gmail.com
src/common/binaryheap.c
src/include/lib/binaryheap.h