[PATCH] Use binaryheap_* macro where appropriate

Started by Aleksander Alekseevover 1 year ago3 messageshackers
Jump to latest
#1Aleksander Alekseev
aleksander@timescale.com

Hi,

I noticed several places where we access `struct binaryheap` directly
instead of using binaryheap_size() and binaryheap_empty() which
doesn't seem right. Here is the patch.

--
Best regards,
Aleksander Alekseev

Attachments:

v1-0001-Use-binaryheap_-macro-where-appropriate.patchapplication/octet-stream; name=v1-0001-Use-binaryheap_-macro-where-appropriate.patchDownload+7-8
#2Nathan Bossart
nathandbossart@gmail.com
In reply to: Aleksander Alekseev (#1)
Re: [PATCH] Use binaryheap_* macro where appropriate

On Thu, Jun 26, 2025 at 01:18:10PM +0300, Aleksander Alekseev wrote:

I noticed several places where we access `struct binaryheap` directly
instead of using binaryheap_size() and binaryheap_empty() which
doesn't seem right. Here is the patch.

Seems reasonable. I'll plan on committing this once v19 is open for
business.

--
nathan

#3Nathan Bossart
nathandbossart@gmail.com
In reply to: Nathan Bossart (#2)
Re: [PATCH] Use binaryheap_* macro where appropriate

Committed.

--
nathan