You are right, we want to protect the stuff that “tid” points to instead of “tid” itself: *tid = something; // should hit compile error tid = something; // ok Also, thanks for telling the history. I have updated the patch to use “const ItemPointerData *” in the same way as ItemPointerGetBlockNumber(). Attached is the v2 patch. Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/ |
v2-0001-Mark-ItemPointer-parameters-as-const-in-tuple-tab.patch
Description: Binary data
