mirror of
https://github.com/postgres/postgres.git
synced 2025-05-02 11:44:50 +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 */
|
||||
|
||||
/*
|
||||
* Found a match, but can't use it if it belongs to another
|
||||
* list already
|
||||
* Found a match, but can't use it if it belongs to
|
||||
* another list already
|
||||
*/
|
||||
if (ct->c_list)
|
||||
continue;
|
||||
@ -1716,13 +1716,13 @@ SearchCatCacheList(CatCache *cache,
|
||||
if (ct == NULL)
|
||||
{
|
||||
/*
|
||||
* Release refcounts on any items we already had. We dare
|
||||
* not try to free them if they're now unreferenced, since
|
||||
* an error while doing that would result in the PG_CATCH
|
||||
* below doing extra refcount decrements. Besides, we'll
|
||||
* likely re-adopt those items in the next iteration, so
|
||||
* it's not worth complicating matters to try to get rid
|
||||
* of them.
|
||||
* Release refcounts on any items we already had. We
|
||||
* dare not try to free them if they're now
|
||||
* unreferenced, since an error while doing that would
|
||||
* result in the PG_CATCH below doing extra refcount
|
||||
* decrements. Besides, we'll likely re-adopt those
|
||||
* items in the next iteration, so it's not worth
|
||||
* complicating matters to try to get rid of them.
|
||||
*/
|
||||
foreach(ctlist_item, ctlist)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user