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.

[1]
https://postgr.es/m/fvfmkr5kk4nyex56ejgxj3uzi63isfxovp2biecb4bspbjrze7@az2pljabhnff

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

Attachment: v1-0001-nbtree-deduplicate-metapage-sanity-checks-in-_bt_.patch
Description: Binary data

Reply via email to