Fix ILIST_DEBUG build
Andres Freund <andres@anarazel.de>
Fix ILIST_DEBUG build In c8ad4d8166a dlist_member_check()'s arguments were made const. Unfortunately the implementation of dlist_member_check() used dlist_foreach(), which currently doesn't work for const lists. As a workaround, open-code the list iteration. The other check functions already do so. Discussion: https://postgr.es/m/20230118182214.co7dp4oahiunwg57@awork3.anarazel.de
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/lib/ilist.c | modified | +4 −3 |
Discussion
- [PATCH] Const'ify the arguments of ilist.c/ilist.h functions 7 messages · 2022-11-07 → 2023-01-18