yjhjstz commented on code in PR #1241: URL: https://github.com/apache/cloudberry/pull/1241#discussion_r2254619012
########## src/include/cdb/cdbappendonlyblockdirectory.h: ########## @@ -322,4 +346,35 @@ copy_out_minipage(MinipagePerColumnGroup *minipageInfo, minipageInfo->numMinipageEntries = minipageInfo->minipage->nEntry; } +static inline void +AOBlkDirScan_Init(AOBlkDirScan blkdirscan, + AppendOnlyBlockDirectory *blkdir) +{ + blkdirscan->blkdir = blkdir; + blkdirscan->sysscan = NULL; + blkdirscan->segno = -1; + blkdirscan->colgroupno = 0; +} + +/* should be called before fetch_finish() */ +static inline void +AOBlkDirScan_Finish(AOBlkDirScan blkdirscan) +{ Review Comment: AOBlkDirScan_Init used by `aocaam.c` and `appendonlyam.c`. -- 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: commits-unsubscr...@cloudberry.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cloudberry.apache.org For additional commands, e-mail: commits-h...@cloudberry.apache.org