dlist_check: add check for nodes pointing to themselves

Поиск
Список
Период
Сортировка
От 杨磊
Тема dlist_check: add check for nodes pointing to themselves
Дата
Msg-id tencent_09314A06199C6B13095610FB@qq.com
обсуждение
Список pgsql-hackers
Hi hackers,

I accidentally called the function dlist_push_head consecutively on the same node, 
inserting it into a doubly linked list, which caused an infinite loop. 
After adding the compile parameter -DILIST_DEBUG, an infinite loop occurred in the dlist_check function, 
revealing that the next pointer of the current node was pointing to itself. 
I am attempting to fix this issue with the following patch.

regards,
Lei Yang
Вложения

В списке pgsql-hackers по дате отправления: