Skip to content

Beautify UpdateCatalogForStandbyPromotion and suppress coverity report. #1501

Merged
reshke merged 7 commits intomainfrom
fix_GetDatabasePath_leak
Dec 30, 2025
Merged

Beautify UpdateCatalogForStandbyPromotion and suppress coverity report. #1501
reshke merged 7 commits intomainfrom
fix_GetDatabasePath_leak

Conversation

@reshke
Copy link
Contributor

@reshke reshke commented Dec 22, 2025

Some variable declaration to beginning of function to enforce C90 and long-standing coding practice of PostgreSQL. Also, be tidy, and release memory allocated in GetDatabasePath. This is not a real memory leak, as standby promotion happends only once (until next restart).

Per coverity report 529246.

Some variable declaration to beginning of function to
enforce C90 and long-standing coding practice of PostgreSQL.
Also, be tidy, and release memory allocated in GetDatabasePath.
This is not a real memory leak, as standby promotion happends
only once (until next restart).

Per coverity report 529246.
@reshke reshke changed the title Beautify UpdateCatalogForStandbyPromotion. Beautify UpdateCatalogForStandbyPromotion and suppress coverity report. Dec 25, 2025
@reshke reshke requested a review from my-ship-it December 25, 2025 06:36
@reshke reshke merged commit 26d373a into main Dec 30, 2025
102 of 106 checks passed
@reshke reshke deleted the fix_GetDatabasePath_leak branch December 30, 2025 17:24
yjhjstz pushed a commit to yjhjstz/cloudberry that referenced this pull request Jan 9, 2026
Some variable declaration to beginning of function to
enforce C90 and long-standing coding practice of PostgreSQL.
Also, be tidy, and release memory allocated in GetDatabasePath.
This is not a real memory leak, as standby promotion happends
only once (until next restart).

Per coverity report 529246.

(cherry picked from commit 26d373a)
hw118118 pushed a commit to hw118118/cloudberrydb that referenced this pull request Jan 27, 2026
Some variable declaration to beginning of function to
enforce C90 and long-standing coding practice of PostgreSQL.
Also, be tidy, and release memory allocated in GetDatabasePath.
This is not a real memory leak, as standby promotion happends
only once (until next restart).

Per coverity report 529246.
hw118118 pushed a commit to hw118118/cloudberrydb that referenced this pull request Jan 27, 2026
Some variable declaration to beginning of function to
enforce C90 and long-standing coding practice of PostgreSQL.
Also, be tidy, and release memory allocated in GetDatabasePath.
This is not a real memory leak, as standby promotion happends
only once (until next restart).

Per coverity report 529246.
hw118118 pushed a commit to hw118118/cloudberrydb that referenced this pull request Jan 28, 2026
Some variable declaration to beginning of function to
enforce C90 and long-standing coding practice of PostgreSQL.
Also, be tidy, and release memory allocated in GetDatabasePath.
This is not a real memory leak, as standby promotion happends
only once (until next restart).

Per coverity report 529246.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants