This is an automated email from the ASF dual-hosted git repository. avamingli pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/cloudberry.git
commit e6f956b86386e3350ea7eaecccf064570445dfd0 Author: Huansong Fu <[email protected]> AuthorDate: Thu May 18 14:28:16 2023 -0700 Replace -1 with InvalidAORowNum 9258ac5d0864d47b1c267818f118032643432cf5 introduced InvalidAORowNum to denote the row number that's nonexisted in gp_fastsequence but still used -1 in two places. Use InvalidAORowNum there. --- src/backend/access/aocs/aocsam.c | 2 +- src/backend/access/appendonly/appendonlyam.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/access/aocs/aocsam.c b/src/backend/access/aocs/aocsam.c index 0c77204a85..c8e0eec140 100644 --- a/src/backend/access/aocs/aocsam.c +++ b/src/backend/access/aocs/aocsam.c @@ -1517,7 +1517,7 @@ aocs_fetch_init(Relation relation, * rather than all AOTupleId_MultiplierSegmentFileNum ones that introducing * too many unnecessary calls in most cases. */ - memset(aocsFetchDesc->lastSequence, -1, sizeof(aocsFetchDesc->lastSequence)); + memset(aocsFetchDesc->lastSequence, InvalidAORowNum, sizeof(aocsFetchDesc->lastSequence)); for (int i = -1; i < aocsFetchDesc->totalSegfiles; i++) { /* always initailize segment 0 */ diff --git a/src/backend/access/appendonly/appendonlyam.c b/src/backend/access/appendonly/appendonlyam.c index 6fec38ef38..bd53ba55dc 100755 --- a/src/backend/access/appendonly/appendonlyam.c +++ b/src/backend/access/appendonly/appendonlyam.c @@ -2208,7 +2208,7 @@ appendonly_fetch_init(Relation relation, * rather than all AOTupleId_MultiplierSegmentFileNum ones that introducing * too many unnecessary calls in most cases. */ - memset(aoFetchDesc->lastSequence, -1, sizeof(aoFetchDesc->lastSequence)); + memset(aoFetchDesc->lastSequence, InvalidAORowNum, sizeof(aoFetchDesc->lastSequence)); for (int i = -1; i < aoFetchDesc->totalSegfiles; i++) { /* always initailize segment 0 */ --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
