mirror of
https://github.com/postgres/postgres.git
synced 2025-05-03 22:24:49 +03:00
Re-pgindent catcache.c after previous commit.
Discussion: https://postgr.es/m/1393953.1698353013@sss.pgh.pa.us Discussion: https://postgr.es/m/CAGjhLkOoBEC9mLsnB42d3CO1vcMx71MLSEuigeABbQ8oRdA6gw@mail.gmail.com
This commit is contained in:
parent
db122d426a
commit
7ceeb57bad
18
src/backend/utils/cache/catcache.c
vendored
18
src/backend/utils/cache/catcache.c
vendored
@ -1697,8 +1697,8 @@ SearchCatCacheList(CatCache *cache,
|
|||||||
continue; /* not same tuple */
|
continue; /* not same tuple */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Found a match, but can't use it if it belongs to another
|
* Found a match, but can't use it if it belongs to
|
||||||
* list already
|
* another list already
|
||||||
*/
|
*/
|
||||||
if (ct->c_list)
|
if (ct->c_list)
|
||||||
continue;
|
continue;
|
||||||
@ -1716,13 +1716,13 @@ SearchCatCacheList(CatCache *cache,
|
|||||||
if (ct == NULL)
|
if (ct == NULL)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Release refcounts on any items we already had. We dare
|
* Release refcounts on any items we already had. We
|
||||||
* not try to free them if they're now unreferenced, since
|
* dare not try to free them if they're now
|
||||||
* an error while doing that would result in the PG_CATCH
|
* unreferenced, since an error while doing that would
|
||||||
* below doing extra refcount decrements. Besides, we'll
|
* result in the PG_CATCH below doing extra refcount
|
||||||
* likely re-adopt those items in the next iteration, so
|
* decrements. Besides, we'll likely re-adopt those
|
||||||
* it's not worth complicating matters to try to get rid
|
* items in the next iteration, so it's not worth
|
||||||
* of them.
|
* complicating matters to try to get rid of them.
|
||||||
*/
|
*/
|
||||||
foreach(ctlist_item, ctlist)
|
foreach(ctlist_item, ctlist)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user