reshke commented on code in PR #1534:
URL: https://github.com/apache/cloudberry/pull/1534#discussion_r2699634043
##########
src/backend/storage/smgr/smgr.c:
##########
@@ -492,9 +493,11 @@ smgrcreate(SMgrRelation reln, ForkNumber forknum, bool
isRedo)
* already because we are in a WAL replay sequence.
*/
void
-smgrcreate_ao(RelFileNodeBackend rnode, int32 segmentFileNum, bool isRedo)
+smgrcreate_ao(const struct f_smgr_ao *smgr,
+ RelFileNodeBackend rnode,
+ int32 segmentFileNum, bool isRedo)
{
- mdcreate_ao(rnode, segmentFileNum, isRedo);
+ smgr->smgr_create_ao(rnode, segmentFileNum, isRedo);
Review Comment:
well, I can add assert here, because outer functions should guarantee that
smgr itself is not null, and extension should guarantee that
smgr->smgr_create_ao is not null...
or do you suggest real if statement for extra paranoia?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]