Re: Small xlog.c cleanup - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: Small xlog.c cleanup
Date
Msg-id 200102271807.NAA21287@candle.pha.pa.us
Whole thread Raw
In response to Re: Small xlog.c cleanup  (Matthew Kirkwood <matthew@hairy.beasts.org>)
Responses Re: Small xlog.c cleanup  (The Hermit Hacker <scrappy@hub.org>)
List pgsql-patches
> On Tue, 27 Feb 2001, Bruce Momjian wrote:
>
> > All source gets reformatted before release by src/tools/pgindent
> > anyway.
>
> This is more than just a formatting change -- it turns
> some static globals into static locals.
>
> Sorry, I should have been a little more verbose in my
> description.

Can you point me to the change.  I don't see it:

---------------------------------------------------------------------------

-static int     readFile = -1;
-static uint32 readId = 0;
-static uint32 readSeg = 0;
-static uint32 readOff = 0;
 static char readBuf[BLCKSZ];
 static XLogRecord *nextRecord = NULL;

@@ -1214,6 +1210,10 @@
        bool            nextmode = (RecPtr == NULL);
        int                     emode = (nextmode) ? LOG : STOP;
        bool            noBlck = false;
+       static int      readFile = -1;
+       static uint32 readId = 0;
+       static uint32 readSeg = 0;
+       static uint32 readOff = 0;

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-patches by date:

Previous
From: Matthew Kirkwood
Date:
Subject: Re: Small xlog.c cleanup
Next
From: The Hermit Hacker
Date:
Subject: Re: Small xlog.c cleanup