Thread: Fix resowner.c pgindent mess

Fix resowner.c pgindent mess

From
Alvaro Herrera
Date:
This file was whacked by pgindent before it knew it shouldn't remove
braces around single statements (for PG_TRY macros).  This patch fixes
it.  Please apply.

Index: src/backend/utils/resowner/resowner.c
===================================================================
RCS file: /home/alvherre/cvs/pgsql/src/backend/utils/resowner/resowner.c,v
retrieving revision 1.11
diff -c -r1.11 resowner.c
*** src/backend/utils/resowner/resowner.c    25 Mar 2005 18:30:27 -0000    1.11
--- src/backend/utils/resowner/resowner.c    4 Apr 2005 22:07:54 -0000
***************
*** 158,164 ****

      save = CurrentResourceOwner;
      PG_TRY();
!     ResourceOwnerReleaseInternal(owner, phase, isCommit, isTopLevel);
      PG_CATCH();
      {
          CurrentResourceOwner = save;
--- 158,166 ----

      save = CurrentResourceOwner;
      PG_TRY();
!     {
!         ResourceOwnerReleaseInternal(owner, phase, isCommit, isTopLevel);
!     }
      PG_CATCH();
      {
          CurrentResourceOwner = save;

--
Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
"Someone said that it is at least an order of magnitude more work to do
production software than a prototype. I think he is wrong by at least
an order of magnitude."                              (Brian Kernighan)

Re: Fix resowner.c pgindent mess

From
Neil Conway
Date:
Alvaro Herrera wrote:
> This file was whacked by pgindent before it knew it shouldn't remove
> braces around single statements (for PG_TRY macros).  This patch fixes
> it.  Please apply.

Thanks, applied.

-Neil