nbtree: reduce code redundancy by using _bt_getmeta() in _bt_gettrueroot()

Поиск
Список
Период
Сортировка
От Chao Li
Тема nbtree: reduce code redundancy by using _bt_getmeta() in _bt_gettrueroot()
Дата
Msg-id CAEoWx2nisjqs4iC9o4Hu7-Ab767=cMZZzmhBGb8SaQtMMmVqPQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: nbtree: reduce code redundancy by using _bt_getmeta() in _bt_gettrueroot()
Список pgsql-hackers
Hi Hackers,

I noticed this while reviewing [1]. _bt_gettrueroot() performs the same metapage checks as _bt_getmeta(), so using _bt_getmeta() here removes the duplicated code.

Build passed without warning and "make check" passed.


Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/




Вложения

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