-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for cache reference leak warning #3161
base: BABEL_4_X_DEV
Are you sure you want to change the base?
Fix for cache reference leak warning #3161
Conversation
Signed-off-by: Pranav Jain <[email protected]>
Pull Request Test Coverage Report for Build 12886386243Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
Signed-off-by: Pranav Jain <[email protected]>
Signed-off-by: Pranav Jain <[email protected]>
Signed-off-by: Pranav Jain <[email protected]>
Signed-off-by: Pranav Jain <[email protected]>
Signed-off-by: Pranav Jain <[email protected]>
Signed-off-by: pranav jain <[email protected]>
Signed-off-by: pranav jain <[email protected]>
Signed-off-by: pranav jain <[email protected]>
Signed-off-by: pranav jain <[email protected]>
Signed-off-by: pranav jain <[email protected]>
Signed-off-by: pranav jain <[email protected]>
Signed-off-by: pranav jain <[email protected]>
Signed-off-by: pranav jain <[email protected]>
Signed-off-by: pranav jain <[email protected]>
Signed-off-by: pranav jain <[email protected]>
if(get_bbf_function_tuple_from_proctuple(SearchSysCache1(PROCOID, ObjectIdGetDatum(oldoid))) == NULL) | ||
proctup = SearchSysCache1(PROCOID, ObjectIdGetDatum(oldoid)); | ||
|
||
if (proctup == NULL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should use HeapTupleIsValid
& curly braces can be removed in next line.
if (get_bbf_function_tuple_from_proctuple(proctup) == NULL) | ||
{ | ||
/* Release the tuple before reporting the error */ | ||
ReleaseSysCache(proctup); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case of error we do not need to release syscache
Signed-off-by: pranav jain <[email protected]>
Description
Problem: During the Alter function/procedure we are doing a sys-cache search without releasing it.
Fix: was to do sys-cache search via tuple and releasing it after the sys-cache search.
Also we are generating the logfile but the path that we were giving it github action workflow was not correct, updated that too.
Issues Resolved
[BABEL-5551]
Check List
By submitting this pull request, I confirm that my contribution is under the terms of the Apache 2.0 and PostgreSQL licenses, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.